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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AliceW
Impactful Individual
Impactful Individual

Card displays in millions; can a hover-over be in thousands?

Hi everyone,

I have this issue with the otherwise awesome Card visual.

I need to format it in millions with one decimal (0.0M).

However, some cards have small enough amounts that they show 0.0.

On tooltip, unfortunately, the same format is kept.

Would anyone have a trick up their sleeve for me to display the amount in thousands on hover-over?

 

AliceW_0-1648915829890.png

 

3 ACCEPTED SOLUTIONS
Greg_Deckler
Super User
Super User

@AliceW What about something like:

Measure = 
    VAR __Value = [Original Measure]
    VAR __Millions = __Value / 1000000
RETURN
    IF(__Value < 100000, FORMAT(__Value,"#.0"),FORMAT(__Millions,"#.0M"))

@ 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

Hi @AliceW ,

 

you can create your own tooltip

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-tooltips?WT.mc_id=DP-MVP-5004288

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

Hi @AliceW ,

another possibility would be to use the hover effect of a button.

 

Embedding Hover Effect Tooltips to a "Card" Visual in Power BI

https://youtu.be/49XjvqjAo58

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


View solution in original post

6 REPLIES 6
AliceW
Impactful Individual
Impactful Individual

These are some awesome solutions, guys! Thank you SO MUCH!!!

jdbuchanan71
Super User
Super User

@AliceW 

What happens if you set the Display units to Auto instead of Millions?  In my test:

2022-04-02_9-49-58.jpg

AliceW
Impactful Individual
Impactful Individual

Hi JD, I actually need them to be in 0.0M for everything to keep the users' expectations in place. I do have that in other reports though!

Hi @AliceW ,

another possibility would be to use the hover effect of a button.

 

Embedding Hover Effect Tooltips to a "Card" Visual in Power BI

https://youtu.be/49XjvqjAo58

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi @AliceW ,

 

you can create your own tooltip

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-tooltips?WT.mc_id=DP-MVP-5004288

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Greg_Deckler
Super User
Super User

@AliceW What about something like:

Measure = 
    VAR __Value = [Original Measure]
    VAR __Millions = __Value / 1000000
RETURN
    IF(__Value < 100000, FORMAT(__Value,"#.0"),FORMAT(__Millions,"#.0M"))

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