Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

Text field to show the selected filter

How could I show what multiple filters are selected on a report page?   There are date  filters and categorical filters.   I want the label to show everything that currenlty selected at al times....
  • OwenAuger's avatar
    OwenAuger
    9 years ago

    roundwound Anonymous

     

    I would use a measure structured something like this:

     

    Filters Selected =
    IF (
        ISFILTERED ( MyTable[MyColumn] ),
        CONCATENATEX ( FILTERS ( MyTable[MyColumn] ), MyTable[MyColumn], ", " ),
        "ALL"
    )

    The reason for using FILTERS is because it returns direct filters on the specified column, as opposed to VALUES which would return the values visible in a column incorporating cross-filtering from other columns.