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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
JemmaD
Helper V
Helper V

Conditional Formatting rules on cell value

Hi there,

I have a table with [Country], [Score] and [Difference].

The [Difference] column contains only -1, 0 and 1. If the Score is higher than the previous year it holds a 1, if it's the same then 0 and if it's lower than the previous year it holds -1. This field is a text column so I could use it to create conditional formatting icons for up, down and side arrows.

If it's a number column I cannot use this field as it simply counts and I cannot use the Field value, only Rules. 

The icons work but only if the [Difference] column is exposed in the table, but I don't want it in there - I just want to hold the icon against the [Score] column to show where it sits compared to the previous year. 

How do I get icons to work against this field without exposing the field in the visualisation?!?

1 ACCEPTED SOLUTION
Akash_Varuna
Super User
Super User

Hi @JemmaD , You could use conditional formating please try these 

  • Apply Conditional Formatting:

    • Select [Score] in the table visual.
    • Go to Conditional Formatting > Icons and set rules:
      • 1→ Up Arrow (green).
      • 0→ Neutral Arrow (yellow).
      • -1→ Down Arrow (red).
  • Remove [Difference] from the Visual:

    Conditional formatting will still work even if [Difference] is not visible.
    If this post helped please do give a kudos and accept this as a solution
    Thanks In Advance

 

 

View solution in original post

2 REPLIES 2
Akash_Varuna
Super User
Super User

Hi @JemmaD , You could use conditional formating please try these 

  • Apply Conditional Formatting:

    • Select [Score] in the table visual.
    • Go to Conditional Formatting > Icons and set rules:
      • 1→ Up Arrow (green).
      • 0→ Neutral Arrow (yellow).
      • -1→ Down Arrow (red).
  • Remove [Difference] from the Visual:

    Conditional formatting will still work even if [Difference] is not visible.
    If this post helped please do give a kudos and accept this as a solution
    Thanks In Advance

 

 

Hi @Akash_Varuna 

 

I'm afraid that is what I am reporting as not being able to do. 

This is what I have in conditional formatting:

JemmaD_3-1738757665125.png

It won't let me change 'First Difference' to anything else.

 

This is the result when Difference is in the table:

JemmaD_1-1738757165916.png

This is the result when I take it out:

JemmaD_2-1738757190900.png

 

 

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors