Forum Discussion

AmberJane's avatar
AmberJane
Helper III
1 year ago
Solved

Filtering with fields that have multiple selections - What are people doing?

My data source that I use for a lot of my reporting allows the end users to select multiple options for various fields.    For example there is a client impacted field. We have a list of important ...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi AmberJane ,

    It is caused by the filter context, you can create a measure as below to get the count of incidents which fulfill the requirement:

    # of Incidents =
    VAR _selcausedby =
        SELECTEDVALUE ( 'Caused  by'[Caused by] )
    RETURN
        CALCULATE (
            COUNT ( 'Table'[ID] ),
            FILTER ( 'Table', SEARCH ( _selcausedby, 'Table'[Caused by], 1, 0 ) > 0 )
        )

    Best Regards