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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Frenk_UM
New Member

Slicer For multiple columns

I'm new at PowerBI, mostly i can find my answers on google but i can't find this one.

I want to make a slicer that switches between columns (Years) (see example image), and express the total values in a graph.

So my slicer must have the options, 2022, 2023,2024,2025,2026

 

Thanks

 

 

Frenk_UM_0-1678444183546.png

 

1 ACCEPTED SOLUTION
Arul
Super User
Super User

@Frenk_UM ,

Please follow the steps,

1. In power query editor, select all the year columns and do unpivot columns by doing right click,

Arul_0-1678454328993.png

you would get the result like this. 

2. Then if you do not want the blank rows in values you can filter it out from the dropdown,

Arul_2-1678454417486.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

1 REPLY 1
Arul
Super User
Super User

@Frenk_UM ,

Please follow the steps,

1. In power query editor, select all the year columns and do unpivot columns by doing right click,

Arul_0-1678454328993.png

you would get the result like this. 

2. Then if you do not want the blank rows in values you can filter it out from the dropdown,

Arul_2-1678454417486.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.