Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Traffic lights gauge for data refresh indicator

Hi All,

Hope all are doing good.

I need help on creating a traffic light gauge chart to indicate data refresh.

If the data refreshed to day i have to display green light and if the data refreshed yesterday i need to display Amber and for before yesterday i need to display red light.

To achieve this I have taken ReloadTime() as expression and i have taken three segments for green and amber and red.

For scale i have considered 0 as min and Today() as Max value.Green lower bound is Today() and for amber lower bound is Today()-1 and 0 is lower bound for red.

But i am not able to achieve the functionality.

Any suggestions are highly appreciated.

Thanks,

Nani

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Nani,

Kindly check the scrrenshots in the below word document.

View solution in original post

8 Replies
vikasmahajan

see this

Pivot table with a traffic light field

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Anil_Babu_Samineni

Try to take gauge expression Like below

=If(Today() = ReloadTime(), Green(), If(Today() = ReloadTime()-1, Amber(), If(Today() = ReloadTime()-2, Red(), Yellow())))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hi Anil,

Thanks for the response.

If have tried your solution but not able to achieve the functionality. What are the segment boundaries that we need to take.

Thanks,

Nani

Not applicable
Author

Hi Vikas ,

i need to show traffic lights to indicate data refresh date not in pivot table.

Thanks,

Nani

tamilarasu
Champion
Champion

Hi Nani,

Like attached?

Not applicable
Author

Hi Nagaraj,

i am not able to open the application. can you pls explain the logic that you have incorporated?

Thanks,

Nani

tamilarasu
Champion
Champion

Hi Nani,

Kindly check the scrrenshots in the below word document.

Not applicable
Author

Thanks Nagaraj. Exactly that is what i am looking for.

Regards,

Nani