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: 
timbatman
Contributor
Contributor

How to Reference Previous value in a chart?

Hi All,

I have a chart in the following format (see attached).  Currently, the variable "SHUT_IN_COMMENTS" only displays for the first day.  I want to comment to display for all days in which the variable "SHUT_IN" = 1.  Here is the logic I need:

If SHUT_IN = previous(SHUT_IN) AND WellName = previous(WellName) then print previous SHUT_IN_COMMENTS else print current SHUT_IN_COMMENTS.

This won't work in the script due to the sorting.  I did the sorting in my chart/table, but am having a problem getting the above function to work property.

Labels (1)
1 Reply
Brett_Bleess
Former Employee
Former Employee

Hey Tim, I cannot see any attachment, just wanted to flag that for you, likely why you have not received any responses yet!

Cheers,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.