Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I want to use in my dashboard table with only 23 results, but that table takes sometimes more than 5 sec loading. What should i change in this dax code if I can enything. I thing that table like this should load immediately or faster than 5 sec 🙂
// DAX Query
DEFINE
VAR __DS0FilterTable =
TREATAS({BLANK()}, 'rp OneTimeUseFlagDispositions'[OneTimeUseFlagDispoistionName])
VAR __DS0FilterTable2 =
TREATAS({"GMC",
"Lexus",
"NISSAN",
"Toyota",
"FORD"}, 'rp Books'[OemName])
VAR __DS0Core =
CALCULATETABLE(
DISTINCT('rp OemIqSections'[OemIqSectionName]),
KEEPFILTERS(__DS0FilterTable),
KEEPFILTERS(__DS0FilterTable2)
)
VAR __DS0PrimaryWindowed =
TOPN(501, __DS0Core, 'rp OemIqSections'[OemIqSectionName], 1)
EVALUATE
__DS0PrimaryWindowed
ORDER BY
'rp OemIqSections'[OemIqSectionName]
Hi @adrian33 ,
Do you have a large amount of data? If there is more data involved in the query process, it will also lead to longer time, streamline the data as much as possible and delete the invalid ones.
Best regards,
Community Support Team Selina zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Some learnings metrials worth recommending?
Understand star schema and the importance for Power BI … (bing.com)
The importance of star schemas in Power BI - SQLBI (bing.com)
On www.sqlbi.com you'll find everything related to DAX and models. Even optimization techniques.
This code does not look too complex. If it executes for a long time... it's time for you to work on the model, not the code. If your model is bad, no amount of DAX tweaking will make it better and the DAX faster.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
38 | |
26 | |
20 | |
15 | |
8 |
User | Count |
---|---|
69 | |
47 | |
46 | |
20 | |
16 |