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
Quadrelli
Regular Visitor

Using a slicer to select a column

Hi,

 

Can someone help me with slicers?

 

I have a table similar to the following;

 

Name Department January February March April May June July August September October November December

Abi     Accounts      20         40            80       30    60    70    20    60         40              90          10              20

Bob    IT                  30         50            30       20    30    40    60    40         10              20          30              10

Cathy IT                  10         40            30       20    90    30    20    60         70              40          60              80

Doug Marketing     20        20             70       80    40    50    60    10        90              40           50             20

Ewan Accounts       30        40             30       90    70    60    40    20        10              80           70             30

 

I would like to use slicers to select the department but also use a slicer to select a month, I'm not sure how to do this, any ideas?

 

Thanks

 

S

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Quadrelli ,

For your requirement, you could follow the steps below.

If you want to create a slicer with Month, you need to unpivot your month columns in Query Editor.

unpivot.png

Then you could get the data model like this.

data model.PNG

Then you could create the matrix and the slicer.

Capture.PNG

More details, you could refer to my attachment.

Best  Regards

Cherry

 

Community Support Team _ Cherry Gao
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

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Quadrelli ,

For your requirement, you could follow the steps below.

If you want to create a slicer with Month, you need to unpivot your month columns in Query Editor.

unpivot.png

Then you could get the data model like this.

data model.PNG

Then you could create the matrix and the slicer.

Capture.PNG

More details, you could refer to my attachment.

Best  Regards

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.