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
mkuhnel
Frequent Visitor

Making a Slicer from Categories not in a Column

Hello,

 

Just a quick question about slicers here. I currently have data set up in the following manner:

 

Month Column | One Measurement | More Measurements | etc

 

I want to able to use this data to create a slicer where I can select a measurement and view how they change between months. However, since there isn't a column with just the measurements in it, I am stuggling to do this. I can transpose my data set but then my months are individual columns and I don't know how to plot a trend once I do that. Please let me know how I should go about this. 🙂

 

Thanks

1 ACCEPTED SOLUTION
foyiq
Advocate I
Advocate I

You could use unpivoting here. Choose all the measurement columns, and then unpivot them (Transform>Unpivot Columns), so that the column names go into one column, and another column will contain corresponding values in it. The only thing to remember is that if you had a single row for each month, now you will have several rows for each month. However, this is not an issue for visualizations and slicers, as they group the underlying data.

View solution in original post

2 REPLIES 2
foyiq
Advocate I
Advocate I

You could use unpivoting here. Choose all the measurement columns, and then unpivot them (Transform>Unpivot Columns), so that the column names go into one column, and another column will contain corresponding values in it. The only thing to remember is that if you had a single row for each month, now you will have several rows for each month. However, this is not an issue for visualizations and slicers, as they group the underlying data.

mkuhnel
Frequent Visitor

Thank you so much! Worked like a charm

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors