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
Anonymous
Not applicable

Slicer

Hello all,

I have a serious problem now. I have a data of

               A     B      C      D      E

January  2     53    34     15     56

Februar  3     63    94     75     86

March    4     33    74     35     16

April      27    43    64     65     96

May       25    30    44     55     46

 SO is itpossible for me to get a slicer of both Months and A,B,C,D,E separately?

 

for example I want to see the data of February B with slicer 

 

Slicer

 Jan

 Feb

 Mar

 April and so on

and another slicer linking to months 

A

B

C

D

E

 

Can anyone please help me in doing this?

 

 

 

Thank you!

2 ACCEPTED SOLUTIONS
rbriga
Impactful Individual
Impactful Individual

Create a calendar table, or a year-month table if that's your smallest date granularity.

It's best practice anyway, and it would yield a year-month field that's independent from the fact table.

If you have no data for 3/2022, for example, your calendar table would still have that month.

 

Create a relationship beytween 'Calendar'[Year-Month] and 'Data Table'[Year-Month].

Use the 'Calendar'[Year-Month] in the slicer.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!

View solution in original post

Anonymous
Not applicable

Hey thanks for the  solution. That worked fine. I tried with a new dummy Excel sheet as you said and its working exactly. 

 

I will accept this as a soluiton to my question. Once again Thankyou 🙂

View solution in original post

6 REPLIES 6
rbriga
Impactful Individual
Impactful Individual

Create a calendar table, or a year-month table if that's your smallest date granularity.

It's best practice anyway, and it would yield a year-month field that's independent from the fact table.

If you have no data for 3/2022, for example, your calendar table would still have that month.

 

Create a relationship beytween 'Calendar'[Year-Month] and 'Data Table'[Year-Month].

Use the 'Calendar'[Year-Month] in the slicer.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!
Anonymous
Not applicable

Hey,

 

Thank for the idea. Let me show my table exactly. So that it would be very easy to understand and find a solution luckily 

ParsiNitin_1-1651480676841.png

In the above picture, I want to make the highlited column as the slicer. This is the exact data 

rbriga
Impactful Individual
Impactful Individual

Unpivoting will get you the desired solution.

Yes, right now, you will be left with just 2022.

As time progresses, more values would show up.

 

Please give unpivoting a try.

You can then test it with dummy data for other years and see how it works.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!
Anonymous
Not applicable

Hey thanks for the  solution. That worked fine. I tried with a new dummy Excel sheet as you said and its working exactly. 

 

I will accept this as a soluiton to my question. Once again Thankyou 🙂

rbriga
Impactful Individual
Impactful Individual

Your best option is to unpivot the A-E columns in Power Query.

Unpivot columns - Power Query | Microsoft Docs

Do that, and the A-E would be a field you may add to a slicer, just like months.

-------------------------
Data analyst by day, hockey goalie by night.
Did I help? Then please hit that "kudos" or "accept as a solution" button!
Anonymous
Not applicable

Unpivoting is ok but I have the data with null values which will be filled out in future. So when I unpivot Iam lossing the months which are having null data. Is there any option for doing this please?

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.