Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Save and update

Hi All, 

I have below table which keeps relaoding into the Qlikview trhough DB .   in this we have some key fields , like pics and Pro   some times there will be change of the status  which i wont come to know , always when the table reloads it comes with the current data . 

Is there a way wehere i can have the historical data stored in qlikview ? where i can show that when was the ticket exisiting and when ig got removed?

TicketPricsProDate 
AA17avtive12-Mar-20
AB145passed13-Mar-20
AC212passed14-Mar-20
AE312failed15-Mar-20
AD513passed16-Mar-20
AE712active17-Mar-20
AZ25progress18-Mar-20

 

Thanks in Advance 

1 Reply
Brett_Bleess
Former Employee
Former Employee

Only way of which I can think to do that is two separate data models in the application, one for the pre-current load and one for the current load so you would be able to do your comparisons, but I am not sure how the heck you do the swap, I guess on each load you would first need to load that prior QVD you created into the pre-current model and then do your pull from the DB and create new QVD etc...  I am sure there are likely better options, but only one of which I can think.  

I had another idea, but I got interrupted and it went right out of my head, and I cannot think of it again, sorry.  Oh, I know what it was, maybe using a flag field of some sort to keep track of the historical versus current records, so when you reload the history files, you set a flag to true, but when you pull the records from the DB, you leave that flag false, that gives you a way in a single data model to keep things segregated I think.  That is likely the best approach I think rather than trying to do two data models.  Hopefully this gets you on a decent path forward.

You can do a search on 'flag' in the following link to have a look at some ideas on how this is used in some situations, not sure we have one that directly correlates to yours, but hopefully it may help further:

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

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.