
Hi all!
As you can see in the picture (Table-Desired result) I am trying to get a subtotal as column for a query from the table (Main Data Source).
I have tried to merge 2 different queries in 1 cell formula without any success.
Below I show you how I wrote the formula separatedly:
1st
=QUERY(IMPORTRANGE("source";"'Sheet'!A:D");"select Col1, sum(Col2), sum(Col4) group by Col1")
2nd
=QUERY(IMPORTRANGE("source";"'Foglio24'!A:D");"select Col1, sum(Col4) group by Col1 pivot Col3")
OR you have any suggestions by not doing 2 query merge?
Thank you!
