Forum Discussion
mike_asplin
Helper V
10 months agoSurprisingly slow measure
Hi. Looking for some advice to speed up this measure which is surprsingly slow FTEs Purchased new = AVERAGEX(ADDCOLUMNS(SUMMARIZE(DateTable,DateTable[MonthYear]),
...
- Anonymous9 months ago
Hi mike_asplin ,
Thanks for sharing the PBIX file.
Please try the following version of the measure. It keeps the same calculation logic as your original approach but removes the use of SUMMARIZE and ADDCOLUMNS, which are contributing to the performance issue:
AVERAGEX ( VALUES ( DateTable[MonthYear] ), SUMX ( VALUES ( Client[Client ID] ), CALCULATE ( MAX ( Client[FTE Prev 30 days] ) * [Distinct Paying Clients ex Canc] ) ) )This also avoids the “single value cannot be determined” error by explicitly resolving the client level FTE value.
Attached pbix file for reference.
Hope this helps.
Please reach out for further assistance.
Thank you.
Anonymous
10 months agoNot applicable
Hi mike_asplin ,
Just wanted to check if any of the responses provided were helpful. If further assistance is needed, please reach out.
Thank you.