Forum Discussion

bluerobot's avatar
bluerobot
Regular Visitor
2 years ago
Solved

Show top 3 based on months using card visuals

I have a table as follow: Month Destination Value October 2024 Japan 10 October 2024 Indonesia 9 October 2024 Spain 8 October 2024 Saudi Arabia 4 October 2024 India 3 ...
  • Kedar_Pande's avatar
    2 years ago

    bluerobot 

     

    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:

     

    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