Forum Discussion

tkrupka's avatar
tkrupka
Resolver II
7 years ago
Solved

Filter a Matrix based on slicers/measures

I have a matrix and a couple of slicers.     The slicers allow the user to pick the month and the year they want the report to end.   Then I have the following two measures: Selected Report Mont...
  • tkrupka's avatar
    tkrupka
    7 years ago

    Accomplished what I was trying to do.

     

     

    Filter Month = IF(AND(MAX(Run_Data[Date])>=[Report Start Date Month],MAX(Run_Data[Date])<=[Report End Date]),1,2)
    Filter Year = IF(AND(MAX(Run_Data[Date])>=[Report Start Date Year],MAX(Run_Data[Date])<=[Report End Date]),1,2)

    Then I had to ensure that Sync Slicers was selected on the view tab. (Missed that)

     

    Since I was setting the page up as static for a particular region, I was able to set up two matrix.

    1st Matrix I set the Filter Month = 1

    2nd Matrix I set the Filter Year = 1

     

     

    Now I have:

     

    Thanks Greg_Deckler for leading me down the right path.