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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
auduno
Regular Visitor

Automatically changing parameter field dimension based on Slicer Selection

Hello!


I have a report that is structured like this:

auduno_0-1673319689586.png

Table (Matrix Visual):
auduno_2-1673320009200.png


Where I want the Parameter Field for my Dimension called DateAxis to change context to month when a specific year is selected:

auduno_1-1673319813812.png

I've tried many different ways, but haven't found a way to do this in one easy click in my Calendar - Year slicer. I am not the most experienced at DAX so I'm hoping someone knows a good way to enable me to set it up without having to interact with the DateAxis field, like this:

auduno_3-1673320247496.png


Thanks in advance,
Audun

1 REPLY 1
auduno
Regular Visitor

I hacked together a functioning solution. It is not optimal but solves this concrete task.

I did it by creating a table called DateAxisSwitch:

auduno_1-1673365731774.png

Modifying my DateAxis:

auduno_2-1673365766383.png

And connecting the Year column of DateAxisSwitch table to my Calendar and DateAxisKey with DateAxisOrder of DateAxis.

auduno_3-1673365785569.png

Now it looks like this without a year selected: 

auduno_4-1673365953121.png

And this with:

auduno_5-1673365967049.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.