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

Compare Top 5 to Others

Hi Everyone,

 

I wanted to know how I can create a pie chart to compare my top 5 customers vs.  the rest.

 

eg.

 

Cus   Sales

A         10

B         5

C         6

D          8

E         1

F         1

G        2

H         3

I           2

J          2

So my pie chart would look like (excuse the ratio)

 

Picture1.png

1 ACCEPTED SOLUTION
Microsoft
Microsoft

Hi @leunjoh

 

You could try a calculated column like this

 

Is Top 5 = 
VAR myRank = RANKX('Table1','Table1'[Sales])
RETURN IF(myRank<=5,"Top 5","Other")

image.png

 

image.png

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

1 REPLY 1
Microsoft
Microsoft

Hi @leunjoh

 

You could try a calculated column like this

 

Is Top 5 = 
VAR myRank = RANKX('Table1','Table1'[Sales])
RETURN IF(myRank<=5,"Top 5","Other")

image.png

 

image.png

 

 


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors