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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to change value of a column in destination table based on Insert/Update

Hi,

It would be very helpful if someone could help me out.

I have a column "Active Flag" with value "A" in the source table and a column "Change Type" in my destination table and need to store values in "Change Type" column as-

1) When "Active Flag" is "A" =>

     a) If data is inserted for the first time then store "I" in Change Type column

     b) If it is data change is detected i.e. data has been updated then change value of Change Type column to "U"

2) When "Active Flag" is "I" =>

    a) Store "D" in Change Type Column.

 

Thanks in Advance.

Labels (2)
1 Reply
akumar2301
Specialist II
Specialist II

Looks like , you need to do SCD2 implementation using tMap.