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

Background colour

Hi,

I have used the below code to get the background colour,but for few codes the background colour is not came .

Code:

=if(Category='CS',rgb(196,191,191),

if(Category='CK',rgb(196,191,191),

if(Category='MC',rgb(196,191,191),

if(Category='VS',rgb(196,191,191),

if(Category='DI',rgb(196,191,191)

)))))

Untitled.png

Thanks..

1 Solution

Accepted Solutions
nareshthavidishetty
Creator III
Creator III
Author

Hi,

Below logic in expression fix the issue.

Logic: if(sum(sales)>0,sum(sales)), which replace zero's with null.

Thanks..

View solution in original post

6 Replies
neelamsaroha157
Specialist II
Specialist II

can you provide some sample data

joseduque
Partner - Contributor III
Partner - Contributor III

Thats because CK, MC and DI are no the same name that the one in the field. Check for lower cases or the value.

Anonymous
Not applicable

Is not it because you only have value in the first two columns?

Anonymous
Not applicable

Simulate a case where all columns are not null.

nareshthavidishetty
Creator III
Creator III
Author

Hi,

It is because of the first row is null.

Let me know how to get this.

Thanks..

nareshthavidishetty
Creator III
Creator III
Author

Hi,

Below logic in expression fix the issue.

Logic: if(sum(sales)>0,sum(sales)), which replace zero's with null.

Thanks..