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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RoxanaZaharia
Helper I
Helper I

a better method to solve this

Hi! I'm fairly new to using Power BISo 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? 

RoxanaZaharia_0-1710595351858.png

 

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

Hi @RoxanaZaharia ,

 

If you don't want to show up in a visual, you can create a table.

vtangjiemsft_0-1710747236842.png

Table = SELECTCOLUMNS( FILTER('all_athlete_games',[Sport]="Basketball" && [Season]="Summer" && [Medal]="Gold"),"Name",[Name],"Event",[Event],"Year",[Year])

vtangjiemsft_1-1710747265544.png

If you don't want to filter using the filter pane, you can create a slicer.

Slicers in Power BI - Power BI | Microsoft Learn

vtangjiemsft_2-1710747492462.png

 

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. 

View solution in original post

3 REPLIES 3
v-tangjie-msft
Community Support
Community Support

Hi @RoxanaZaharia ,

 

If you don't want to show up in a visual, you can create a table.

vtangjiemsft_0-1710747236842.png

Table = SELECTCOLUMNS( FILTER('all_athlete_games',[Sport]="Basketball" && [Season]="Summer" && [Medal]="Gold"),"Name",[Name],"Event",[Event],"Year",[Year])

vtangjiemsft_1-1710747265544.png

If you don't want to filter using the filter pane, you can create a slicer.

Slicers in Power BI - Power BI | Microsoft Learn

vtangjiemsft_2-1710747492462.png

 

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. 

Thank you so much for your help!

MNedix
Solution Supplier
Solution Supplier

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.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.