March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi All!
I'm looking for some help on how to ignore a filter context while using RankX.
This is my current DAX calculation:
Rank Qty =
RANKX(ALL('Dim ITEM'), [Total Qty])
Currently I have permissions set on my dashboard so the viewers (sales ppl) can only see their territory (Dim Customer, [territory]). I am looking to override the permissions for this specific table visual so they are able to view overall company product ranking.
Any ideas on how to do this?
Thank you!!
Christina
Solved! Go to Solution.
Hello @Anonymous,
1. Create a measure that calculates the total quantity without considering any filters applied to the 'Dim Customer' table.
Total Qty (All Customers) = CALCULATE([Total Qty], ALL('Dim Customer'))
2. Create a new measure using the RANKX function to calculate the overall company product ranking based on the 'Total Qty (All Customers)' measure.
Rank Qty (Overall) = RANKX(ALL('Dim ITEM'), [Total Qty (All Customers)])
3. Use the 'Rank Qty (Overall)' measure in your visual to display the overall company product ranking. Do not hesitate to let me know if you might need further assistance.
Hello @Anonymous,
1. Create a measure that calculates the total quantity without considering any filters applied to the 'Dim Customer' table.
Total Qty (All Customers) = CALCULATE([Total Qty], ALL('Dim Customer'))
2. Create a new measure using the RANKX function to calculate the overall company product ranking based on the 'Total Qty (All Customers)' measure.
Rank Qty (Overall) = RANKX(ALL('Dim ITEM'), [Total Qty (All Customers)])
3. Use the 'Rank Qty (Overall)' measure in your visual to display the overall company product ranking. Do not hesitate to let me know if you might need further assistance.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
15 | |
12 | |
9 | |
8 |
User | Count |
---|---|
41 | |
32 | |
29 | |
12 | |
12 |