Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Jodes
Helper II
Helper II

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 than one zone, it appears as "All". Here is a picture:

 

https://imgur.com/a/OgNquhP

 

My question is, how can I get it to display the text of what I'm selecting?

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Jodes

 

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

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Jodes

 

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

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-cherch-msft. This works for the most part.

 

However, when all my zones are selected it displays every single name. Can we get it to just say "All" when I have all my zones selected? This would be my default view.

 

EDIT: Nevermind @v-cherch-msft. I've got it working now.

 

 

Hi @Jodes

 

Can you please share your fix with me. I'm struggling to get mine to work when all are selected. Like you, when I slected all, the title listed everything instead of saying 'All Selected'. However it works great when selecting individual ones. So if 3 name selected it shows those 3 names

 

Many thanks

Karen

Think ive resolved it

 

Test Title For Dynamic Contractor Title v2 =

VAR SelectedContractors =

   VALUES (Contractor[Contractor_Name])

RETURN

    "Contractor/s: "

 

&  IF(NOT(ISFILTERED(Contractor[Contractor_Name])),"All Contractors" , IF( ISFILTERED(Contractor[Contractor_Name]), CONCATENATEX ( VALUES (Contractor[Contractor_Name]), Contractor[Contractor_Name], "," )))

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.