Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Dynamic Title - Multiple Selections

Here's my current formula:    Selected Zone = var selectedcolor = SELECTEDVALUE('All Data'[Zone]) return "Zone: "& IF(ISBLANK(selectedcolor), "All", selectedcolor)    However, when I select more ...
  • v-cherch-msft's avatar
    7 years ago

    Hi Anonymous

     

    You may try to use below measure. Here is the reference for you.

    Selected Zone =
    VAR selectedcolor =
        VALUES ( 'All Data'[Zone] )
    RETURN
        "Zone: "
            & IF (
                COUNTROWS ( selectedcolor ) = COUNTROWS ( ALL ( 'All Data'[Zone] ) ),
                "All",
                CONCATENATEX ( VALUES ( 'All Data'[Zone] ), 'All Data'[Zone], "," )
            )

    Regards,

    Cherie