Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello everyone,
I have a question about a table (drill-through) I use in my dashboard.
The table is based on a fact table (with one item per row) and can dynamically display anywhere between 5 rows to 5 million rows. It joins with 7 different dimension tables and includes 15 columns.
I’m trying to improve the performance of this table and was thinking about implementing the following logic:
The problem is that using TOPN doesn’t seem to help (as far as I understand) because the engine still loads all the data first and only then filters it down to the top 1,000 rows. I tested this, and there was no noticeable improvement in performance.
I’m not sure how to implement this in DAX. I’m working with a Tabular model using a live connection, and the solution needs to remain dynamic and interactive.
Do you have any suggestions for how to achieve this?
Thanks in advance!
Solved! Go to Solution.
Hi, @dorku
You can try the following methods.
Sample data:
Measure = Var _rank=RANKX(All('Table'),CALCULATE(MAX('Table'[Date])),,DESC,Dense)
RETURN
IF(_rank<=10,1,0)
Place this measure on filters on this visual and set it equal to 1.
At this point, the top ten data by date are displayed by default. If you choose to clear the filter, all data will be displayed.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @dorku
You can try the following methods.
Sample data:
Measure = Var _rank=RANKX(All('Table'),CALCULATE(MAX('Table'[Date])),,DESC,Dense)
RETURN
IF(_rank<=10,1,0)
Place this measure on filters on this visual and set it equal to 1.
At this point, the top ten data by date are displayed by default. If you choose to clear the filter, all data will be displayed.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
By default, show only 1,000 items ordered by the latest datetime.
Add a button to allow users to load all the data if needed.
The visual already does this for you automatically. It pages results in chunks of 500 rows.
Ironically, the DAX code for that uses TOPN(501,...) if you want it or not 🙂
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 9 | |
| 5 | |
| 5 |