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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AaronGlenn10
Helper III
Helper III

Dynamic Title Help

All Stars:

 

I have a drop down menu with Cities and Business Names within those cities - trying to create a measure that creates a title based on the selection of either City or Business Name.  I can create one for city or business name, but not both.

 

Selected City or Location = selectedvalue(TABC[City Key])
Combine values in a new column then point to that column??

 

Also, it's ok if the City Name displays along side the Business Name in the title if that's the solution.

 

I feel like this is an easy fix, just not seeing the solution.

 

Selection Title.jpg

 

 

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @AaronGlenn10 ,

 

You can add a filter like the following. Refer to a formula like the following:

M_ =
CONCATENATEX (
    FILTER ( ALL ( 'Table' ), 'Table'[Company] IN { "A", "B", "F" } ),
    'Table'[Company],
    ","
)

vhenrykmstf_0-1645066931131.png

vhenrykmstf_1-1645066949316.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your feedback.


Best Regards,
Henry


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
v-henryk-mstf
Community Support
Community Support

Hi @AaronGlenn10 ,

 

You can add a filter like the following. Refer to a formula like the following:

M_ =
CONCATENATEX (
    FILTER ( ALL ( 'Table' ), 'Table'[Company] IN { "A", "B", "F" } ),
    'Table'[Company],
    ","
)

vhenrykmstf_0-1645066931131.png

vhenrykmstf_1-1645066949316.png

 


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your feedback.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@AaronGlenn10 ,

Selected City or Location = selectedvalue(TABC[City Key]) & concatenateX(TABC, TABC[Business Name], " , ")

 

or

 

Selected City or Location = concatenateX(TABC, TABC[City Key] & TABC[Business Name], " , ")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you.  It works greeat when just selecting a Business Name, however, when you select a City, it lists every business name within that city -- see screenshot below.  Is there a measure that would exclude or filter out the business names under the City?

 

Selection Results.jpg

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.