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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
danielrsnyder
Frequent Visitor

Top N by gift amount?

Hello, 

 

I am trying to display the Top 5 gifts by gift amount in the table below, but I am not able to get a Top N filter to work? The visual level filters for my gift amount field (formatted as a decimal number) do not give me the Top N filter option. Also, I have seen this thread about top N filter for a measure, but the gift amount field is not a measure? Any ideas? I want to use this in conjunction with a year filter so users can easily see the top 5 gifts each year.

Capture.PNG

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

I really want to know what kind of gig you have going. I wish I had the problem of figuring out who gave me $4M and $2M versus a measely $1M. 🙂

 

See image below on Top N filter, it is working for me. Your issue might be that you have ties. If you have ties, TOP N treats those as the same "rank" if you will so you can end up with more than you specify.

 

image.png



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

I really want to know what kind of gig you have going. I wish I had the problem of figuring out who gave me $4M and $2M versus a measely $1M. 🙂

 

See image below on Top N filter, it is working for me. Your issue might be that you have ties. If you have ties, TOP N treats those as the same "rank" if you will so you can end up with more than you specify.

 

image.png



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler! I needed to add the gift amount filter in a second time and not use the one that was automatically included when I added that field to my visual. 

 

I do have a pretty good gig going though Smiley Happy.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.