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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AaronGlenn10
Helper III
Helper III

Dynamic Title with Multi-Level Hierarchy

All Stars:

 

Trying to create a dynanmic title based on a user's selection of a city or a business location within a city.  When I used a CONCATENATE measure the SELECTED BUSINESS LOCATION works, but when I select the CITY then the title displays the CITY name, and ALL the BUSINESS LOCATIONS within that CITY.  Any guidance would be much appreciated!  Thank you.

 

AaronGlenn10_0-1645015246661.png

 

1 ACCEPTED SOLUTION

Hi @AaronGlenn10 ,

 

Please try the following formula:

 

Measure = 
VAR city = CONCATENATEX ( VALUES ( 'Table'[City] ), [City], " , " )
VAR Location = CONCATENATEX ( VALUES ( 'Table'[Location Snapshot] ), 'Table'[Location Snapshot], "," )
RETURN IF ( ISFILTERED ( 'Table'[Location Snapshot] ), Location, city )

vkkfmsft_0-1645495705964.png

vkkfmsft_1-1645495723781.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

3 REPLIES 3
amitchandak
Super User
Super User

@AaronGlenn10 ,

concatenatex( sumamrize(City, City[City], city[BUSINESS LOCATION]) , [City] & " - " [BUSINESS LOCATION] , " , ")

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

When I select just the CITY it still displays all the locations within that CITY in the title... trying to display just the CITY's NAME when the CITY is selected.

Hi @AaronGlenn10 ,

 

Please try the following formula:

 

Measure = 
VAR city = CONCATENATEX ( VALUES ( 'Table'[City] ), [City], " , " )
VAR Location = CONCATENATEX ( VALUES ( 'Table'[Location Snapshot] ), 'Table'[Location Snapshot], "," )
RETURN IF ( ISFILTERED ( 'Table'[Location Snapshot] ), Location, city )

vkkfmsft_0-1645495705964.png

vkkfmsft_1-1645495723781.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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!

December 2024

A Year in Review - December 2024

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