Forum Discussion
a better method to solve this
Hi! I'm fairly new to using Power BI. So I downloaded this data set from kaggle: https://www.kaggle.com/datasets/krishd123/olympics-legacy-1896-2020 , and i am trying to show the gold winners and the year they won for Basketball at Summer Olympic games, for each event type. I approached this using a table visualization, selecting Name, Event and Year as the columns and filtering the visual ("Basketball" for the "Sport" filter, "Summer" for the "Season" filter, and "Gold" for the "Medal" filter.
Is there a more effective method to approach this problem?
- Anonymous2 years ago
Hi RoxanaZaharia ,
If you don't want to show up in a visual, you can create a table.
Table = SELECTCOLUMNS( FILTER('all_athlete_games',[Sport]="Basketball" && [Season]="Summer" && [Medal]="Gold"),"Name",[Name],"Event",[Event],"Year",[Year])If you don't want to filter using the filter pane, you can create a slicer.
Slicers in Power BI - Power BI | Microsoft Learn
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- MNedix
Solution Sage
Hi,
What is your expectation for "more effective"? You could do a hard-coded filter but that would limit your choices to only the filters you mentioned.
- AnonymousNot applicable
Hi RoxanaZaharia ,
If you don't want to show up in a visual, you can create a table.
Table = SELECTCOLUMNS( FILTER('all_athlete_games',[Sport]="Basketball" && [Season]="Summer" && [Medal]="Gold"),"Name",[Name],"Event",[Event],"Year",[Year])If you don't want to filter using the filter pane, you can create a slicer.
Slicers in Power BI - Power BI | Microsoft Learn
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- RoxanaZaharia
Helper I
Thank you so much for your help!