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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
henry24007
Helper I
Helper I

slicer with yearly changing

2021 Department
A
B
C

Change to

2022 Department
A
B
C1

 

I have a problem with changing the department name. In 2021 one of the departments changed its name from C to C1 but they are both the same. I would like to make a slicer that knows department C1 equals C and I made a column that looks like below:

 
Dept = IF([Department] = "C1", "C/C1", [Department])
 
But when I select 2021 in the year slicer, the report page will go blank with department C1 in the department slicer. It can only show 2022's data. What I want to do is to connect both C1 and C. when I select 2021 but use department C1 in the slicer, it can also display 2021'data and vice versa. It is possible to do that? I know that if I make C1=C by changing the column like IF([Department] = "C1", "C", [Department]) will work, but I want to keep the string "C/C1" that way.
2 REPLIES 2
mangaus1111
Solution Sage
Solution Sage

Hi @henry24007 ,

you can use the filter pane, instead of a slicer.

mangaus1111_0-1667805830588.png

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

sorry, but 3 or 3.1 is just a code for you to understand easier, actually, it could be department ABC

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors