Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Need help with default slicer selection based on another slicer

I have two slicers, Month and Week. The Week slicer filters the Month slicer, so whenever I choose a week, it filters to that corresponding month.

 

There's my question, is there a way when I choose a week, the Month slicer automatically selects the correct month instead of choosing the preselected month?

 

I want it to automatically select April when I choose a week in April like this.

 

But right now it requires me to manually select the Appropriate month.

 

 

Please if anyone could provide some help.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Try below calendar table:

    Date = 
    ADDCOLUMNS (
        CALENDAR ( DATE ( 2023, 01, 01 ), DATE ( 2024, 12, 31 ) ),
        "Year", YEAR ( [Date] ),
        "Quarter", ROUNDUP ( MONTH ( [Date] ) / 3, 0 ),
        "Month", FORMAT(MONTH([Date]),"mmmm"),
        "Week", WEEKNUM ( [Date] ),
        "Year-Qur",
            YEAR ( [Date] ) & "Q"
                & ROUNDUP ( MONTH ( [Date] ) / 3, 0 ),
        "Year-Mon",
            YEAR ( [Date] ) * 100
                + MONTH ( [Date] ),
        "Year-Week",
            YEAR ( [Date] ) * 100
                + WEEKNUM ( [Date], 2 ),
        "Weekday", WEEKDAY ( [Date], 2 )
    )

    When the date slicer is selected, the month slicer will automatically become the corresponding month.

    Best Regards,
    Adamk Kong

     

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

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you for the answer. However, is there a way for the Month slicer to automatically select when it changes?