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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
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.