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

View all the Fabric Data Days sessions on demand. View schedule

Reply
bluerobot
Regular Visitor

Show top 3 based on months using card visuals

I have a table as follow:

MonthDestinationValue
October 2024Japan10
October 2024Indonesia9
October 2024Spain8
October 2024Saudi Arabia4
October 2024India3
October 2024UK2
September 2024Japan11
September 2024Turkiye7
September 2024Spain6
September 2024Indonesia5
September 2024UAE4
September 2024US3
September 2024Vietnam1

 

I'm struggling to create 3 card visuals showing top 3 Destinations based on Value. I also want to add a month slicer so that the viz will show the top 3 for specific months

 

For example, these are the top 3 for all months

Screenshot 2024-10-29 132154.png

 

And these are the top 3 for September only

Screenshot 2024-10-29 132126.png

 

I'm new to Power BI and I'd be thankful for any helps!

1 ACCEPTED SOLUTION
Kedar_Pande
Super User
Super User

@bluerobot 

Kedar_Pande_0-1730185469339.png

 

Create a measure:

Rank Destinations = 
IF (
ISBLANK(CALCULATE(SUM('Table'[Value]))), // Check if Value is blank for the current context
BLANK(),
RANKX(
FILTER(
ALL('Table'), // Replace 'Table' with the actual name of your table
'Table'[Month] = SELECTEDVALUE('Table'[Month]) // Filter by current month
),
CALCULATE(SUM('Table'[Value])), // Rank by Value directly
,
DESC,
DENSE
))

Add visual level, bottom 3 filter:

Kedar_Pande_1-1730185513665.png

 

Let me know if this resolves the issue or if you need further assistance!

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

 

View solution in original post

4 REPLIES 4
Kedar_Pande
Super User
Super User

@bluerobot 

Kedar_Pande_0-1730185469339.png

 

Create a measure:

Rank Destinations = 
IF (
ISBLANK(CALCULATE(SUM('Table'[Value]))), // Check if Value is blank for the current context
BLANK(),
RANKX(
FILTER(
ALL('Table'), // Replace 'Table' with the actual name of your table
'Table'[Month] = SELECTEDVALUE('Table'[Month]) // Filter by current month
),
CALCULATE(SUM('Table'[Value])), // Rank by Value directly
,
DESC,
DENSE
))

Add visual level, bottom 3 filter:

Kedar_Pande_1-1730185513665.png

 

Let me know if this resolves the issue or if you need further assistance!

 

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

 

Thank you, exactly what I was looking for! Another q, what visual is that to show all 3 result at once?

@bluerobot  matrix with Destination on columns:

Kedar_Pande_0-1730188684738.png

 

Noted, thanks once again

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors