cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
s_wflee
Frequent Visitor

Customer Ranking at Company level to ignore all filters & slicers

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 NameProductRep NameP12M Sales   
AXAlice91753   
AYAdam75071   
AXAlice60242   
BXAlice37779   
CYAdam27500   
BZMark23633   
CYAdam18536   
       
* Slicer based on Adam      
Table Visual:      
CustomerTotal Sales (co.)Co. P12M ContributionCo.RankTotal Sales (base on slicer)*P12M Contribution (base on slicer)*Rank (base on slicer)*
A227,06668%17507162%1
B61,41218%200%3
C4603614%34603638%2
1 REPLY 1
amitchandak
Super User
Super User

@s_wflee ,

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/3...

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!