The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
@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!
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
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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.