Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
vidhya91gct
Partner - Contributor
Partner - Contributor

Latest month traffic light

Hi All,

I want to show the latest month state with the following logic for traffic light.

G If all green, = traffic light is green

Y If no red, but any yellow, then traffic light is yellow

R If any red, traffic light is red

for Ex: latest month is Mar2018 and it is Y and G , so i want to show Y (yellow traffic light)

Please find the attached table.

   

GYR Category Oct 2017Nov 2017Dec 2017Jan 2018Feb 2018Mar 2018
AAA Y - SY - SY - UG - SY - SY-S
BBB Y - SY - UY - DR - UY - D
CCC Y - SG - SG - SG - SG - SG-S
DDD G - SG - SG - SG - SG - S
FFFF Y - SY - DY - DR - DY - DY-S
1 Solution

Accepted Solutions
Qrishna
Master
Master

3 Replies
Qrishna
Master
Master

Wheres the file?

krishna20
Specialist II
Specialist II

Hi Vidhya,

you missed the attachment. Pls share it. Is there any scenario that you will get any G- Y or Y- R or G- R

vidhya91gct
Partner - Contributor
Partner - Contributor
Author

I am getting same format excel file and loaded it.

Catagory   GYR Month    Status

AAA           Oct 2018        G - S

BBBB         Nov 2018       Y  - D

CCC            Dec 2018      R  - D

DDD             Jan 2018      G -D

EEE              Feb2018       Y - S

FFF                Mar 2018    R - D     it is source format.

I have changed the Pivot table and getting in the below format

GYR CategoryOct 2017Nov 2017Dec 2017Jan 2018Feb 2018Mar 2018
AAAY - SY - SY - UG - SY - SY-S
BBBY - SY - UY - DR - UY - D
CCCY - SG - SG - SG - SG - SG-S
DDDG - SG - SG - SG - SG - S
FFFFY - SY - DY - DR - DY - D

Y-S

I want to show the latest month state with the following logic for traffic light.

G If all green, = traffic light is green

Y If no red, but any yellow, then traffic light is yellow

R If any red, traffic light is red

for Ex: latest month is Mar2018 and it is Y and G , so i want to show Y (yellow traffic light)