The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello, I am using a SUMX function in one of my calculation. It is completely degrading the performance of visual. Here is my calculation:
Solved! Go to Solution.
Hello,
Thank you so much for your response. As SUMX is a iterator function, it is degrading the performance. I was helped by some other user with the following solution
CountUnique = COUNTROWS(SUMMARIZE(TBL,TBL[Account Name],TBL[SaleType]))
Hi @srikanthgunnam ,
Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.
Best regards
Amy
Hello,
Thank you so much for your response. As SUMX is a iterator function, it is degrading the performance. I was helped by some other user with the following solution
CountUnique = COUNTROWS(SUMMARIZE(TBL,TBL[Account Name],TBL[SaleType]))
Hi @srikanthgunnam ,
Glad to hear the issue is resolved, you can accept your reply as solution, that way, other community members would benefit from your solution.
Best regards
Amy Cai
Hi @srikanthgunnam ,
How about delete the "CALCULATE" in your formula to simplified it. Or try to create measure using DAX below.
Dummy = var d= DISTINCTCOUNT(TBL[SaleType])
return SUMX(DISTINCT(TBL[Account Name]),d)
You could refer to below blogs to optimize your DAX formula:
Tune your PowerPivot DAX query, don’t use the entire table in a FILTER and replace SUMX if possible
Please understand that this link is provided “AS IS” with no warranties or guarantees of content changes, and confers no rights.
Best Regards,
Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
101 | |
97 | |
80 | |
62 | |
57 |
User | Count |
---|---|
264 | |
120 | |
115 | |
83 | |
70 |