Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Wubek
Contributor II
Contributor II

Color conditional table

Hello,

 

i have a question about using color conditional based on two fields from table. Basically i want to color 1 cell if sales>than budget, but this:

```

if(sum(sales)/sum(budget), LightGreen(), LightRed())

```

is not working. Could someone help me?

Labels (3)
1 Solution

Accepted Solutions
Rams-
Creator
Creator

Hi, 

You can use this expression in background color expression:

if((Sum(Sales)>Sum(Budget)),LightGreen(), LightRed())

Output:

Rams_0-1682505875045.png

Hope this helps,

help user find answers ! don't forget to mark  a solution that work for you and click the like button!

 

View solution in original post

3 Replies
tresesco
MVP
MVP

But you are not using '>' symbol but '/' ?

Rams-
Creator
Creator

Hi, 

You can use this expression in background color expression:

if((Sum(Sales)>Sum(Budget)),LightGreen(), LightRed())

Output:

Rams_0-1682505875045.png

Hope this helps,

help user find answers ! don't forget to mark  a solution that work for you and click the like button!

 

Wubek
Contributor II
Contributor II
Author

Thanks @Rams-