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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors