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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
BI_Dev
Creator II
Creator II

Identify removed records

@vinieme12 Hi - I have a similar requirement as

https://community.qlik.com/t5/Visualization-and-Usability/Identify-removed-records/m-p/1922299

where I have to show #of records added & terminated each month.

BI_Dev_0-1743435085715.png

 



using this if(ID_2=Peek(ID_2) and isnull(check),'Terminated','Added') as status

Here ID 401 is only added in 3/1/2025 - However it is showing Added & Terminated from Dec, Jan, Feb as well. How can I fix that ?

386 is Terminated in Feb and that is showing correct.

 

Thank you much.

@rwunderlich@Chanty4u @stalwar1 @Lech_Miszkiewicz @vinieme12

Labels (2)
3 Replies
Chanty4u
MVP
MVP

Try this 

TempData:

LOAD 

    ID_2, 

    Month,

    check

FROM YourSource

ORDER BY ID_2, Month;

FinalData:

LOAD

    ID_2, 

    Month,

    check,

    If(ID_2 = Peek(ID_2) AND isnull(check), 'Terminated', 'Added') AS status

RESIDENT TempData

ORDER BY ID_2, Month;

 

BI_Dev
Creator II
Creator II
Author

BI_Dev_1-1743452705546.png

 

 

That did not work

 

BI_Dev
Creator II
Creator II
Author