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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Max Medals earned

Hi everyone,

 

Could you please help about the maximum medalist for the table below? (Just an example table)

Medals # is created by me.

haimow_0-1651331251050.png

ty in advance.

 

haimow_0-1651331207022.png

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the following formula and filter.

 

Caluculated column:

Medals # = IF ( [Medals] in {"Gold", "Bronze", "Silver"}, 1, 0 )

Measure:

Rank = 
RANKX (
    SUMMARIZE ( ALLSELECTED ( athlete_events ), athlete_events[Name] ),
    CALCULATE ( SUM ( athlete_events[Medals #] ) ),
    ,
    ASC,
    DENSE
)

vkkfmsft_0-1651541168916.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please try the following formula and filter.

 

Caluculated column:

Medals # = IF ( [Medals] in {"Gold", "Bronze", "Silver"}, 1, 0 )

Measure:

Rank = 
RANKX (
    SUMMARIZE ( ALLSELECTED ( athlete_events ), athlete_events[Name] ),
    CALCULATE ( SUM ( athlete_events[Medals #] ) ),
    ,
    ASC,
    DENSE
)

vkkfmsft_0-1651541168916.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

What is the output expected?

Anonymous
Not applicable

The player with the most medals.

Ty.

Vijay_A_Verma
Most Valuable Professional
Most Valuable Professional

if a player wins 4 medals, say 2 Gold, 1 Silver and 1 Broze, will there be 4 lines items for him or 1 for Gold which will have medals # as 2, 1 for Silver and 1 for Broze?

Actually, in your example table, it is no clear...

Anonymous
Not applicable

The breakdown for the medals is not important, so gold silver bronze doesnt matter.

I just want to make a card with the athlete with most Medals.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.