I have a summarized table with two variables:
SUMMARIZE(Table;
Table[Static1];
Table[Static2];
Table[Static3];
"Total1Summarized"; MAX(Table[TOTAL1]);
"Total2Summarized"; MAX(Table[TOTAL2])
)
I want to make a new variable SUM(Total1Summarized)/SUM(Total2Summarized)
I know I can do this task by creating two summed variables and dividing one of another, but I think having one summarize is quicker for large calculations.
My current solution:
Creating two different variables:
Variable1:=
SUMX(
SUMMARIZE(Table;
Table[Static1];
Table[Static2];
Table[Static3];
"Total1Summarized"; MAX(Table[TOTAL1])
);
[Total1Summarized]
)
Variable2:=
SUMX(
SUMMARIZE(Table;
Table[Static1];
Table[Static2];
Table[Static3];
"Total2Summarized"; MAX(Table[TOTAL2])
);
[Total1Summarized]
)
Dividing SUM of them:
FinalVariable:=SUM([Variable1])/SUM([Variable2])
Thank you in advance for answers!