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

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.

Reply
baronraghu
Helper III
Helper III

Show duplicate numbers

Hi All,

 

I want to see the top 10 spending amount by customers I have the following data

 

Date     Customer Name   Product name    Spending

1/1/2016   David                  Au                     173

1/11/2016  Victor                   In                      171

1/21/2016   Steve                 Au                     164

1/31/2016    David                Au                      158

2/1/2016       Mark                pa                      148

2/15/2016    Jose                  en                      102

2/25/2016   Tim                    nz                       98

.

.

.

.

And so on I have 300 entries

 

The result i want is the top 10 spending amount and name of the customer

 

I used max function to get the maximum spending amount. When i am using the funnel chart as the visual as per customer name and max amount spent measure I am only getting unoque values. But I am unable to get the duplicate values

 

The result should be

David 173

Victor 171

Steve  164

David  158

Mark 154

Jose 102

 

 

 

2 ACCEPTED SOLUTIONS
v-yuezhe-msft
Employee
Employee

Hi @baronraghu,

Agree with others.

You can create a measure named Rank using the following formula, then create a table visual using Customer Name field and Rank measure, and set Rank measure to be less than or equal to 10 in Visual Level filters.

Rank = RANKX(ALL(Table1),CALCULATE(MAX(Table1[Spending])),,DESC)



1.PNG

 

 


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @baronraghu,

As the issue is solved, you can accept helpful replies as answer, this way, other community members would easily find the answer when they get same issues.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

Hi @baronraghu,

Agree with others.

You can create a measure named Rank using the following formula, then create a table visual using Customer Name field and Rank measure, and set Rank measure to be less than or equal to 10 in Visual Level filters.

Rank = RANKX(ALL(Table1),CALCULATE(MAX(Table1[Spending])),,DESC)



1.PNG

 

 


Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Everyone

 

Yes i agree with all that Rankx is a perfect solution which gives me the rank.

 

Thanks

Hi @baronraghu,

As the issue is solved, you can accept helpful replies as answer, this way, other community members would easily find the answer when they get same issues.

Thanks,
Lydia Zhang

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Vvelarde
Community Champion
Community Champion

@baronraghu

 

Hi, as my knowledge a Funnel Chart group by category/ column.

 

If you want duplicate name this type of chart doesn't work for you.




Lima - Peru
Greg_Deckler
Super User
Super User

Sounds like you want to use RANKX to rank the spending amounts and then you could filter that to only the top 10.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.