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 everyone,
I need to build a visual table with 2 types of customer ranking
1) Customer ranking at company level (not affected by sales rep slicer selection)
2) Customer ranking at each sales reps profile (follow the sales rep slicer)
In the table visual,
Below is the example.
Thanks.
Regards,
SL
Sales Data Table | ||||||
Customer Name | Product | Rep Name | P12M Sales | |||
A | X | Alice | 91753 | |||
A | Y | Adam | 75071 | |||
A | X | Alice | 60242 | |||
B | X | Alice | 37779 | |||
C | Y | Adam | 27500 | |||
B | Z | Mark | 23633 | |||
C | Y | Adam | 18536 | |||
* Slicer based on Adam | ||||||
Table Visual: | ||||||
Customer | Total Sales (co.) | Co. P12M Contribution | Co.Rank | Total Sales (base on slicer)* | P12M Contribution (base on slicer)* | Rank (base on slicer)* |
A | 227,066 | 68% | 1 | 75071 | 62% | 1 |
B | 61,412 | 18% | 2 | 0 | 0% | 3 |
C | 46036 | 14% | 3 | 46036 | 38% | 2 |
@Anonymous ,
if you need it, based on the slicer
rankx(allselected(Table[customer]),[Co. P12M Contribution])
not based on slicer
rankx(all(Table[customer]),[Co. P12M Contribution])
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415
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 |
---|---|
110 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |