This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
Can anyone help me!
I have a slice with hieareki location ( City--> Zone) . I want to create a dynamic title to the graph.
When I choose All in slice it will show " USA" i the titel.
When I choose 'New York' or Chicago" in the slice it will show " New York" or "Chicagoi the titel.
When I choose 'Zone 1- NY' and "Zone 2 -NY" in slice it will show " Zone 1- NY" and "Zone 2 -NY"i the tittel.
---
| Country | City | Zone |
| USA | New York | Zone 1 -NY |
| USA | New York | Zone 2 -NY |
| USA | New York | Zone 3 -NY |
| USA | Chicago | Zone 1 -CHI |
| USA | Chicago | Zone 2 -CHI |
Thank You!
__
Solved! Go to Solution.
Hi,
Dynamic Title =
VAR SelectedZone = VALUES('Table'[Zone])
VAR SelectedCity = VALUES('Table'[City])
VAR SelectedCountry = SELECTEDVALUE('Table'[Country])
RETURN
SWITCH(
TRUE(),
ISFILTERED('Table'[Zone]),
CONCATENATEX(SelectedZone, 'Table'[Zone], ", "),
ISFILTERED('Table'[City]),
CONCATENATEX(SelectedCity, 'Table'[City], ", "),
SelectedCountry
)
To apply:
Go to Title -> Conditional Formatting (Fx)
Choose Format by "Field Value" and select measure "Dynamic Title" that we created.
Let me know if that helps!
Dynamic Title =
SWITCH(
TRUE(),
HASONEVALUE(Location[Zone]), "USA - " & SELECTEDVALUE(Location[Zone]),
HASONEVALUE(Location[City]), "USA - " & SELECTEDVALUE(Location[City]),
"USA"
)
If this answer helped, please click 👍 or Accept as Solution.
-Kedar
LinkedIn: https://www.linkedin.com/in/kedar-pande
Glad that it helped!
Hi,
Dynamic Title =
VAR SelectedZone = VALUES('Table'[Zone])
VAR SelectedCity = VALUES('Table'[City])
VAR SelectedCountry = SELECTEDVALUE('Table'[Country])
RETURN
SWITCH(
TRUE(),
ISFILTERED('Table'[Zone]),
CONCATENATEX(SelectedZone, 'Table'[Zone], ", "),
ISFILTERED('Table'[City]),
CONCATENATEX(SelectedCity, 'Table'[City], ", "),
SelectedCountry
)
To apply:
Go to Title -> Conditional Formatting (Fx)
Choose Format by "Field Value" and select measure "Dynamic Title" that we created.
Let me know if that helps!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 28 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 33 | |
| 25 | |
| 24 |