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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
felcar2013
Partner - Creator III
Partner - Creator III

recursive field value

hi

i want to create a new column in my customer table, where i want to estimate a the column values based on the following rule:

the new field shall show the activity level of the previous period as shown in the table. do you know if it is possible to get the new column in the same customer table?

CustomerActivePeriod ID (timestamp)New Field (Active previous period)
00001Yes149-
00001Yes150Yes
00001No151Yes
00001No152No
00001Yes153No
4 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Yes, use "Above" function

hope it helps

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     Try this.

     ABC:

     Load * from ABC;

     Load Customer,Active,Period_ID,previous(Active) as Previous_Active

     Resident ABC order by Period_ID Asc;

     Drop table ABC;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
felcar2013
Partner - Creator III
Partner - Creator III
Author

thanks for your response

need to order by customer ID and Period ID, i tried this before, not expected result

kuba_michalik
Partner - Specialist
Partner - Specialist

Did you check for changes in Customer value? Otherwise, first time a new Customer is loaded it would check whether the previous one was active. It should default to null in that situation.