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
srk_powerbi
Helper II
Helper II

conditional formatting for table positive and negative numbers

hi,

I am trying to apply conditional formatting for icons for a measure columnin table. it should show For positive values, green up arrow, for '0' value  yellow icon and for negative values red icon. What should be the 'Rule' in the conditional format settings? i tried different settings but not working.

pls help..

 

srk_powerbi_0-1617242037621.png

 

1 ACCEPTED SOLUTION

Hi @srk_powerbi 

You can add a measure in the model to help set conditional formatting. For example,

Icon measure = 
SWITCH (
    TRUE (),
    [Difference] > 0, 1,
    [Difference] = 0, 0,
    [Difference] < 0, -1
)

[Difference] is the measure in the table which this icon formatting should be based on. Then set it up like below.

040701.jpg

Result:

040702.jpg

 

Kindly let me know if this helps.
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

4 REPLIES 4
VijayP
Super User
Super User

@srk_powerbi This may help you

VijayP_0-1617242483587.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


that did not work..

Hi @srk_powerbi 

You can add a measure in the model to help set conditional formatting. For example,

Icon measure = 
SWITCH (
    TRUE (),
    [Difference] > 0, 1,
    [Difference] = 0, 0,
    [Difference] < 0, -1
)

[Difference] is the measure in the table which this icon formatting should be based on. Then set it up like below.

040701.jpg

Result:

040702.jpg

 

Kindly let me know if this helps.
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Anonymous
Not applicable

Can you do this with percentages. The numbers did not work. Thanks! 

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.