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

How do I update my existing data using incremental load?

Hi, I have below data, I need to update the status of the account manually every month, please see below scenario

Scenario: to update/replace ACCT 1 of JUN-2019 monthend to CLOSED status, only Status will be replace other details will be the still. (Below data are on existing QVD file).

I have an excel file that contains updated records of ACCT 1 of JUN-2019 monthend with the same number of columns

ACCOUNT NUMBERSTATUSNAMEMONTHEND
ACCT 1ACTIVEKRISTELAPR-2019
ACCT 1ACTIVEKRISTELMAY-2019
ACCT 1ACTIVEKRISTELJUN-2019
ACCT 2ACTIVEJUL-2019JUL-2019
ACCT 3CLOSEDAUG-2019AUG-2019

 

expected output will be the ff:

ACCOUNT NUMBERSTATUSNAMEMONTHEND
ACCT 1ACTIVEKRISTELAPR-2019
ACCT 1ACTIVEKRISTELMAY-2019
ACCT 1CLOSEDKRISTELJUN-2019
ACCT 2ACTIVEJUL-2019JUL-2019
ACCT 3CLOSEDAUG-2019AUG-2019

 

Thank  you

Labels (2)
7 Replies
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

 

you could try in this way:

1) Add a variable 

LET Closed = 'JUN-2019';

 

2) Then create a new field

If(Match(MONTHEND,'$(Closed)')>0,'CLOSED',STATUS) AS STATUS_NEW

kristeljoymalapitan
Author

Thanks for your response StarinieriG,

I don't want to add new column, just replace/update the status from CLOSED.

 

 

StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

 

Then:

LOAD
[ACCOUNT NUMBER],
If(Match(MONTHEND,'$(Closed)')>0,'CLOSED',STATUS) AS STATUS,
NAME,
MONTHEND;

kristeljoymalapitan
Author

How about the other status that not need to replace under Jun-2019 monthend (for example, there is TERMINATED status under JUN-2019 monthend but will not be replace or update)

ACCOUNT NUMBERSTATUSNAMEMONTHEND
ACCT 1ACTIVEKRISTELAPR-2019
ACCT 1ACTIVEKRISTELMAY-2019
ACCT 1ACTIVEKRISTELJUN-2019
ACCT 2TERMINATEDKRISTELJUN-2019
ACCT 2ACTIVEJUL-2019JUL-2019
ACCT 3CLOSEDAUG-2019AUG-2019
StarinieriG
Partner - Specialist
Partner - Specialist

Hi

in that case, you have to add a condition, if you want to update only active status:

If(Match(MONTHEND,'$(Closed)')>0 and STATUS = 'ACTIVE','CLOSED',STATUS) AS STATUS,

Brett_Bleess
Former Employee
Former Employee

Kristel, did any of the posts help you get what you needed?  If so, be sure to use the Accept as Solution button on those that did help to give the poster credit for the help as well as to let others know what worked.  I am going to put a couple of links below that may help further if you are still working on things, but if you still need further help, please leave an update too.

https://community.qlik.com/t5/Qlik-Design-Blog/Overview-of-Qlik-Incremental-Loading/ba-p/1466780

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/QVD_Incremental...

Regards,
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.
deepakahirwar
Partner - Contributor III
Partner - Contributor III

 

Please refer the link below  to overcome this problem:

https://ezdatamunch.com/implementation-incremental-load-qlikview-benefits/

Note: Go through the 2.Case Insert & Update

clipboard_image_0.png

 

Thanks & Regards,

Deepak Ahirwar