Forum Discussion

auduno's avatar
auduno
Regular Visitor
3 years ago

Automatically changing parameter field dimension based on Slicer Selection

Hello!


I have a report that is structured like this:

Table (Matrix Visual):


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

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:


Thanks in advance,
Audun

1 Reply

  • auduno's avatar
    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:

    Modifying my DateAxis:

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

    Now it looks like this without a year selected: 

    And this with: