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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
simrantuli
Continued Contributor
Continued Contributor

Show value in Millions in the tooltip of bar chart

Hi All,

 

I have a requirement to show values in Millions in the Data labels as well as the tooltip of a bar chart.

Setting it to Millions in the Display units dropdown only works for the Data labels not for the values in the tooltip.

simrantuli_0-1599673915247.png

I also tried using FORMAT function in my dax expression to change the value to Millions. However, it doesn't work at all. It makes my chart go blank.

 

Please help.

 

Thanks & Regards

Simran Tuli

2 ACCEPTED SOLUTIONS

@simrantuli - OK, I tried a couple different ways but couldn't get it. I'm thinking you do this, if "Measure" is your original measure, maybe:

 

Tooltip Measure = [Measure]/1000000 & "M"

 

You could use that in your Tooltip. Downside, original value will still be displayed as well.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

v-eqin-msft
Community Support
Community Support

Hi @simrantuli ,

You could use Format() to custom tooltip  

tooltip =

FORMAT ( SUM ( 'Table'[Cost] ) / 1000000, "#M" )

My visualization looks like this:

 

9.10.1.1.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.

If not, please upload some insensitive data samples and expected output.

 

Best Regards,

Eyelyn Qin

View solution in original post

9 REPLIES 9
v-eqin-msft
Community Support
Community Support

Hi @simrantuli ,

You could use Format() to custom tooltip  

tooltip =

FORMAT ( SUM ( 'Table'[Cost] ) / 1000000, "#M" )

My visualization looks like this:

 

9.10.1.1.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.

If not, please upload some insensitive data samples and expected output.

 

Best Regards,

Eyelyn Qin

Greg_Deckler
Super User
Super User

@simrantuli - Perhaps try custom format strings as in Chelsie Eiden's Duration - https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler ,

 

Could you please elaborate a bit on how can I use this approach mentioned in the blog that you shared to show values in millions (including the tooltip).

Thanks a lot for your help!

@simrantuli - OK, I tried a couple different ways but couldn't get it. I'm thinking you do this, if "Measure" is your original measure, maybe:

 

Tooltip Measure = [Measure]/1000000 & "M"

 

You could use that in your Tooltip. Downside, original value will still be displayed as well.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler,

 

Sadly, it doesn't work 😞

@hi @simrantuli - I was able to implement the solution using the approach mentioned by @Greg_Deckler

See screen grab below for the same. 

 

Sumanth_23_1-1600196017412.png

 

Please provide a 👍 if my comment helped with solving your issue. Thanks!

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!

Proud to be a Super User!



@simrantuli Did you get an error or can you share a screen shot of the issue?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler,

Sorry. I was making a mistake while creating the measure. Your solution works. 

However, as you mentioned, the original value still gets displayed.

 

Best Regards

Simran Tuli

@simrantuli Glad you got it. Yeah, I don't know of a way to get rid of that default part of the tooltip. Only thing I can suggest would be to use a Tooltip Page but that might be overkill.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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