Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
NPArulventhan
New Member

How to get Top 10 Values. Help me,

How can i get the Top 10 customer sales.

2 ACCEPTED SOLUTIONS
Baskar
Resident Rockstar
Resident Rockstar

Hi Arul,

 

1. First u need to create one measure 

Sum of sales = SUM(Sales)

 

2. Second for Rank

Rank = RANKX(Allselected(Customer),"Sum of Sales",,Desc,Dense)

 

3. Apply this rank in Visual Filter from that u can choose Top N Values

 

Hope it will solve your prob 

View solution in original post

great!!!!!!!!!

           Its help me to choose Top N Values

View solution in original post

3 REPLIES 3
Baskar
Resident Rockstar
Resident Rockstar

Hi Arul,

 

1. First u need to create one measure 

Sum of sales = SUM(Sales)

 

2. Second for Rank

Rank = RANKX(Allselected(Customer),"Sum of Sales",,Desc,Dense)

 

3. Apply this rank in Visual Filter from that u can choose Top N Values

 

Hope it will solve your prob 

 

I am new to the Power BI

It works well, but my total value is wrong. Its  shwing total value for the entire month.

I want total value for top 10 customer. 

 

How can i add top 10 sales values.  I have used below formula . Still it's not working

 

Top 10 Turnover = if (ISFILTERED(V_Sale_TurnOver_BI[CustomerName]), if([Rank]<=10, sum(V_Sale_TurnOver_BI[Turnover]),BLANK()), CALCULATE(SUM(V_Sale_TurnOver_BI[Turnover]),TOPN(10,VALUES(V_Sale_TurnOver_BI[CustomerName]),sum((V_Sale_TurnOver_BI[Turnover]) ) ) ))

 

Please advise

 

 

 

great!!!!!!!!!

           Its help me to choose Top N Values

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors