Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
My question is, how can I get it to display the text of what I'm selecting?
Solved! Go to Solution.
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
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
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], "," )))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |