Forum Discussion
Optimising a DAX
Hello Community,
I have DAX here which is needed some optimisation. In the sense at the moment whhen I'm using this DAX in visualisation it's taking a lot of time/memory to load. Any suggestions on how I can optimise?
3 Replies
- mahoneypatMicrosoft Employee
There is a lot going on in that measure (many nested measures, IFs, etc.). Any sub-optimal pieces are then multiplied by the granularity of your first table variable. I would encourage you to watch one of the optimizing DAX videos by SQLBI and use DAX Studio to break it down (to see which parts are causing the issues and where you can reduce the granularity).
Pat
- littlemojopuppyCommunity Champion
Anonymous you are making extensive use of the SUMMARIZE function, which has performance issues. I'd suggest rewriting to use some combination of GROUPBY and ADDCOLUMNS. Hope this helps!
- AnonymousNot applicable
Hi Anonymous , I am sorry, but this is bit too complex for this forum. If performance is an issue, you may want to consider moving the logic back in Power Query.