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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Paulyeo11
Impactful Individual
Impactful Individual

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 @Paulyeo11 -

 

Create a measure as below 

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

View solution in original post

themistoklis
Community Champion
Community Champion

@Paulyeo11 

 

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

@Paulyeo11 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

@Paulyeo11 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.

Paulyeo11
Impactful Individual
Impactful Individual

Hi Parry2K

You seem to know a lot. Thank you.

Paul 

themistoklis
Community Champion
Community Champion

@Paulyeo11 

 

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 @Paulyeo11 -

 

Create a measure as below 

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

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!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.