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
manishtripathi
Regular Visitor

Display a range in Card instead of point value

Hi I would like to display a plus minus 10% range in Card Visual instead of point Value in card. Can some one suggest how can i do that?

 

Currently I am getting 

manishtripathi_0-1648058380540.png

I would like to display "266.9 K - 326.2 K" in the card.

1 ACCEPTED SOLUTION
PabloDeheza
Solution Sage
Solution Sage

Hey! I dont know the exact code of the measure behind that number, but you can format your DAX code a little bit to combine text and the result of the measure itself.
Try this:

Card Value with Range =
VAR _10Percent =
[Value] * 0.10
RETURN
FORMAT( ( [Value] - _10Percent ) / 1000, "#,0.0K" ) & " - " & FORMAT( ( [Value] + _10Percent ) / 1000, "#,0.0K" )

Note: You can format your number as pleased, I did it that way to match your exact requirement.

See the difference in the image below
PabloDeheza_0-1648060906830.png

 

View solution in original post

2 REPLIES 2
manishtripathi
Regular Visitor

Thank You! This was really helpful😀

PabloDeheza
Solution Sage
Solution Sage

Hey! I dont know the exact code of the measure behind that number, but you can format your DAX code a little bit to combine text and the result of the measure itself.
Try this:

Card Value with Range =
VAR _10Percent =
[Value] * 0.10
RETURN
FORMAT( ( [Value] - _10Percent ) / 1000, "#,0.0K" ) & " - " & FORMAT( ( [Value] + _10Percent ) / 1000, "#,0.0K" )

Note: You can format your number as pleased, I did it that way to match your exact requirement.

See the difference in the image below
PabloDeheza_0-1648060906830.png

 

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.