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
Anonymous
Not applicable

How to modify expression for display company value label ?

Hi All

 

Below blog post about " Dynamic Chart Title "

https://blog.crossjoin.co.uk/2016/04/25/dynamic-chart-titles-in-power-bi/

 

it have mentioned about below expression :-

 

Title =
"Sales Amount for "
    & CONCATENATEX (
        VALUES ( 'DimDate'[EnglishDayNameOfWeek] ),
        'DimDate'[EnglishDayNameOfWeek],
        ", "
    )
 
How to modify the above exprssion for pick up value label the company field ?
 
 
 

 

 
 
 
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Anonymous -

 

Create a measure as below 

Title =
"Sales for "
& CONCATENATEX (
VALUES ( SALES[COMPANY] ),
SALES[COMPANY],
", "
)

View solution in original post

themistoklis
Community Champion
Community Champion

@Anonymous 

 

Create the following measure and add it to the formula on title section

Measure = "SALES FOR " & SELECTEDVALUE(SALES[COMPANY])

 

fx.JPG

View solution in original post

5 REPLIES 5
parry2k
Super User
Super User

@Anonymous glad we could help. Good luck. Cheers!!

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@Anonymous To be a more robust solution, either change your slicer to a single selection then use @themistoklis measure but if you want to keep multiple selections in your slicer, you need to change measure to be more robust as suggested by @Anonymous . But if lot more companies are selected then it will be a very long title. You can check my blog post to handle scenarios like this.

 

Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hi Parry2K

You seem to know a lot. Thank you.

Paul 

themistoklis
Community Champion
Community Champion

@Anonymous 

 

Create the following measure and add it to the formula on title section

Measure = "SALES FOR " & SELECTEDVALUE(SALES[COMPANY])

 

fx.JPG

Anonymous
Not applicable

Hi @Anonymous -

 

Create a measure as below 

Title =
"Sales for "
& CONCATENATEX (
VALUES ( SALES[COMPANY] ),
SALES[COMPANY],
", "
)

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.