Forum Discussion
Optimizing DAX Measure
I have some DAX Performance Tuning articles here:
- https://community.powerbi.com/t5/Community-Blog/Performance-Tuning-DAX-Part-1/ba-p/976275
- https://community.powerbi.com/t5/Community-Blog/Performance-Tuning-DAX-Part-2/ba-p/976813
These are also good articles:
- https://maqsoftware.com/expertise/powerbi/dax-best-practices
- https://www.sqlgene.com/2019/09/27/a-comprehensive-guide-to-power-bi-performance-tuning/
- Video: https://www.sqlbi.com/tv/optimizing-analyzing-dax-query-plans-sqlbits-xii/#
- https://docs.microsoft.com/en-us/power-bi/guidance/power-bi-optimization
Sorry for the link spam but it's a broad topic and the information you have provided is limited. Will try to take a closer look at the formula. Can you provide PBIX file or sample source data?
- zaza5 years agoResolver III
CNENFRNL This would not work as the ABS calculation will not return the correct values. I did try to see and the performance is just slightly better. I realize the issue is with the SUMMARIZE function and I need to do this without using SUMMARIZE.
Greg_Deckler I read trough the links you provided and I am already doing everything as optimally as possible. I abstracted out the main calculation that is causing the issue into a simple example: PowerBI Absolute Value.pbix
The calculated measure returns the same result as the ABS function except for the totals. As you can see in the totals the absolute values for each category is summed up.
Category Absolute = VAR __table = SUMMARIZE ( 'Table', 'Table'[Category], "Absolute", ABS ( SUM ( 'Table'[Value] ) ) ) RETURN SUMX ( __table, [Absolute] )Can I do this somehow without using SUMMARIZE ?