Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Paknanarn23
Creator II
Creator II

Enter the background color according to the conditions.

Want to add a background color to the condition that if the count comes out and there are 2 consecutive values, the shift will be red. But if not, make it yellow.

This is the code that does the counting.

if(Shift='Morning',Count(
DISTINCT IF(
NOT WildMatch(AD_Remark, '*ok*', '*ปกติ*', '*down*')
AND AD_ApproveStatus <> '1',
AD_Remark
)
)
,
if(Shift='Afternoon',Count(
DISTINCT IF(
NOT WildMatch(AD_Remark, '*ok*', '*ปกติ*', '*down*')
AND AD_ApproveStatus <> '1',
AD_Remark
)
)
,
if(Shift='Night',Count(
DISTINCT IF(
NOT WildMatch(AD_Remark, '*ok*', '*ปกติ*', '*down*')
AND AD_ApproveStatus <> '1',
AD_Remark
)
)
)))

Paknanarn23_0-1725850767766.png

 

 

0 Replies