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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors