I'm about to embark on rebuilding a model that has been growing since 2011 and hopefully doing a better job of it with all I have learnt since that time, when I was making it up as a went along!
In my original model had had lots of calculations where i needed to calculate sub tables before performing some other function. In general they looked like:
CALCULATE(
COUNTROWS(Table),
FILTER(
Table,
Table[ABC]=EARLIER(Table[ABC]) &&
Table[XYZ]=EARLIER(Table[XYZ])
)
)
Would I be right thinking that i am much better to use SUMMARIZE to create any sub tables that then get looped through by another function?
CALCULATE(
COUNTROWS(Table),
SUMMARIZE(
Table,
Table[ABC],
Table[XYZ]
)
)
Just wan tot check i'm reading up on the right thing as not 100% clear about how to use SUMMARIZE effectively.
Thanks
Mike
In my original model had had lots of calculations where i needed to calculate sub tables before performing some other function. In general they looked like:
CALCULATE(
COUNTROWS(Table),
FILTER(
Table,
Table[ABC]=EARLIER(Table[ABC]) &&
Table[XYZ]=EARLIER(Table[XYZ])
)
)
Would I be right thinking that i am much better to use SUMMARIZE to create any sub tables that then get looped through by another function?
CALCULATE(
COUNTROWS(Table),
SUMMARIZE(
Table,
Table[ABC],
Table[XYZ]
)
)
Just wan tot check i'm reading up on the right thing as not 100% clear about how to use SUMMARIZE effectively.
Thanks
Mike