Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
twills12
Contributor II
Contributor II

calculated field in load calculation

Is it possible to create/use a calculated field on the load where you reference itself?

Exercises:

Load * Inline [

ID, Exercise, Date, Result

x, x, x, x

x, x, x, x

];

NewTable:

load *,

if(previous(Status) = 'Tier1', 'Tier2', 'Tier1') as Status

Resident Exercises;

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

if(Peek(Status) = 'Tier1', 'Tier2', 'Tier1') as Status


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

2 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Try this.

if(Peek(Status) = 'Tier1', 'Tier2', 'Tier1') as Status


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
twills12
Contributor II
Contributor II
Author

That did it!  Peek instead of Previous... now I know.  Thanks!!!!