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
ibtvek
New Member

Card to visually display any number less than 0 as 0

I have a quick measure (difference of X and Y) applied to a card visual and shown as median, with some results having negative values, depending on other selection on the page.

ibtvek_0-1690518535217.png

Is it at all possible to visually show any number on the card that is less than 0, to show as 0.
I don't want it to affect the data itself - for example, I don't want to exclude or suppress values that are less than 0. Just want them to display visually as 0 on this particular card.

Could anyone help me out please? Thank you.

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @ibtvek 
Yes, create a measure dedicated to this card with the condition
something like 
Cardmeasure = if ([original_measure] <0,0,[original_measure])

Ritaf1983_0-1690520484930.pngRitaf1983_1-1690520510800.png

Link to the demo file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @ibtvek 
Yes, create a measure dedicated to this card with the condition
something like 
Cardmeasure = if ([original_measure] <0,0,[original_measure])

Ritaf1983_0-1690520484930.pngRitaf1983_1-1690520510800.png

Link to the demo file 

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Hi there.
Thank you for your response. When I try to create a new measure, it won't recognise the original measure name [Diff Plan to Ax] for some reason

ibtvek_0-1690523385385.png


But this works fine as a new column, any ideas?

It seems that it is not measure ,  may be it column name.

You need to create a measure

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.