Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hey guys,
I have performance issues with the Rankx function.
Currently, i use the rankx function for a dynamic top n selection for a matrix with a slicer.
This works fine for a table with less than 200 customers.
However, if i use my table with 15000 customers, the matrix will not load.
I would be really glad for suggestions or workarounds.
The DAX for my rankx function is the following:
Rank__Customer = RANKX(ALL(Customer[CustomerName] ),[TotalSales])
Solved! Go to Solution.
Hi @schaetzles ,
If the customer table only has the customername column.
new table = distinct(cusotmer[customername ])
If not, it is recommended to create a new table with only customername column, then link the new table with the customer table, and replace the customer table in your formula with the new table.
Rank__Customer = RANKX(ALL(new table[CustomerName] ),[TotalSales])
Best Regards,
Jay
Hi @schaetzles ,
If the customer table only has the customername column.
new table = distinct(cusotmer[customername ])
If not, it is recommended to create a new table with only customername column, then link the new table with the customer table, and replace the customer table in your formula with the new table.
Rank__Customer = RANKX(ALL(new table[CustomerName] ),[TotalSales])
Best Regards,
Jay
@schaetzles , if you are doing dynamic TOPN, then use TOPN
TOPN: https://youtu.be/QIVEFp-QiOk
Also, is total sales is a simple measure?
Thanks for the answer!
Total Sales is just a simple measure.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
124 | |
114 | |
74 | |
65 | |
46 |