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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.