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

Color Coding Based on Calculation

Hello,

I'm trying to color code based on my expression:

So if my expression:  =Count({1}DISTINCT BarcodeI) - Count(DISTINCT{<Pass= {'YES'}, Barcode>} Barcode)  equals more tahn 0 I want it to be read. I've tried a few things but it's not working.

I tried:

if(sum(Count({1}DISTINCT BarcodeI)-Count(DISTINCT{<Pass= {'YES'}, Barcode>}) = '>0' , lightred, RGB(160,160,160)))

also

if(Count({1}DISTINCT BarcodeI)-Count(DISTINCT{<Pass= {'YES'}, Barcode>}) = '>0' , lightred, RGB(160,160,160))

I'm obviously doing something wrong since it's not working.

1 Solution

Accepted Solutions
sunny_talwar

How about this

If(Count({1}DISTINCT BarcodeI) - Count(DISTINCT{<Pass= {'YES'}, Barcode>} Barcode) > 0, LightRed(), RGB(160,160,160))

View solution in original post

2 Replies
sunny_talwar

How about this

If(Count({1}DISTINCT BarcodeI) - Count(DISTINCT{<Pass= {'YES'}, Barcode>} Barcode) > 0, LightRed(), RGB(160,160,160))

hammermill21
Creator III
Creator III
Author

Thank you, I see what I missed