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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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