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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Akash_Pohare
Contributor III
Contributor III

Re run the task if the KPI is not updated in the application

Dear Community,

I have a requirement where I want to re-run the task if the first reload did not extract the data and hence if KPI is not updated in the dashboard with the latest data.

Is there any way with which Qlik can read the KPI  from the application and based on the result(KPI value is 0) can the same task be re-run again automatically?

Kindly help me if you have any thoughts on how to achieve this.

Thanks.

Labels (2)
2 Replies
Timario
Contributor III
Contributor III

Hi. 

can you store value of kpi in qvd file .
you can re run task next method:

create sub (function) with your code;

comparison new value of kpi with old value;

if new value has some change, restore in qvd file,  end sub, end script;

else call your sub.

It's link for sub: https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptControlSt...

It's link for choice value: https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunc...

It's link for if/then/else/end if: https://help.qlik.com/en-US/sense/August2021/Subsystems/Hub/Content/Sense_Hub/Scripting/ConditionalF....

Akash_Pohare
Contributor III
Contributor III
Author

Hi Timario,

Thanks for your input.

How can we store a KPI(calculated in the front end) in a QVD? And do you think it execution will go in loops if the data is not updated in each extraction?

Thanks.