This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Pros,
I am trying to build a dashboard with a set of visuals where the dashboard need to answer the following questions.
Visual 1: Who are my Top 5/10 customers by a measure (THis is accomplished)
Visual 2: Where my Top N customers are from (Preferably on a map, to plot only data points of customers who are in First visual)
Visual 3: What products are bought by my Top N customers? (Any visual that can restrict the data based on first visual)
I have uploaded the PBIX file in this lication.
https://drive.google.com/open?id=17G4GEJzPWcjOMh9Zy-AME0ugSQF0ZXEZ
Solved! Go to Solution.
Hi @natg,
Based on my test, you can firstly use the formula below to create the measure to calculate the [Custom Rank], then you should be able to use the [Final Sales] measure to apply visual level filters([Final Sales] is greater than 0) on the visuals of the three answers to get the expected result in your scenario.
Customer Rank =
RANKX (
ALL ( 'Sample'[Customer] ),
CALCULATE ( [Total Sales], ALLEXCEPT ( 'Sample', 'Sample'[Customer] ) ),
,
DESC
)
Here is the modified pbix file for your reference. ![]()
Regards
Hi @natg,
Based on my test, you can firstly use the formula below to create the measure to calculate the [Custom Rank], then you should be able to use the [Final Sales] measure to apply visual level filters([Final Sales] is greater than 0) on the visuals of the three answers to get the expected result in your scenario.
Customer Rank =
RANKX (
ALL ( 'Sample'[Customer] ),
CALCULATE ( [Total Sales], ALLEXCEPT ( 'Sample', 'Sample'[Customer] ) ),
,
DESC
)
Here is the modified pbix file for your reference. ![]()
Regards
Hi @v-ljerr-msft,
Thanks for the help. Looks like need to spend more time understanding how the all except works in this case.
When I applied the product filter, the visuals are fine and working as expected. Whereas the rank index values were incorrect in the table.
Once I included Product also as another clause in the all except option, it looked fine. Many thanks for the help.
Customer Rank =
RANKX (
ALL ( 'Sample'[Customer] ),
CALCULATE ( [Total Sales], ALLEXCEPT ( 'Sample', 'Sample'[Customer], 'Sample'[Product] ) ),
,
DESC
)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 23 | |
| 18 |