Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
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