Forum Discussion

pfarahani's avatar
pfarahani
Icon for Helper II rankHelper II
5 years ago
Solved

Cascading Slicer

Hello All,

 

In my model I have a dimension table for Courthouse and a dimension table for Departments. 

What I am trying to do is, when the user selects a courthouse or multiple courthouses, then the next slicer which is departments, should only display the departments according to the courthouses that were selected. Thanks

 

 

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi pfarahani ,

     

    You may try this:

    Measure =
    VAR _allSelect =
        SUMMARIZE (
            FILTER (
                ALLSELECTED ( 'Courthouse' ),
                'Courthouse'[Courthouse] IN ALLSELECTED ( Courthouse[Courthouse] )
            ),
            'Courthouse'[ID]
        )
    RETURN
        IF ( MAX ( 'Departments'[ID] ) IN _allSelect, 1, 0 )
    

    Then apply it to filter pane set as "is 1", the final output is shown below:

     

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

3 Replies

  • I am trying to create a measure like this:

     

    Courthouse Filter =
    FILTER('Department – Slicer', 'Department – Slicer'[Courthouse Substring] = SELECTEDVALUE('JBSIS Probate Courthouse'[CourthouseAbv])
    )
    This syntax does not work for now, but Im saying filter down the list of departments based on the selection of the courthouse filter
  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi pfarahani ,

     

    You may try this:

    Measure =
    VAR _allSelect =
        SUMMARIZE (
            FILTER (
                ALLSELECTED ( 'Courthouse' ),
                'Courthouse'[Courthouse] IN ALLSELECTED ( Courthouse[Courthouse] )
            ),
            'Courthouse'[ID]
        )
    RETURN
        IF ( MAX ( 'Departments'[ID] ) IN _allSelect, 1, 0 )
    

    Then apply it to filter pane set as "is 1", the final output is shown below:

     

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