Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
sanjujeeboy
Creator
Creator

difference of QVD data

I have a qvd with current hour data:

 hour    sales

  20         1000

i have another qvd with previous hour data 

Hour   sales 

19        500 

how can i  do difference in qvds in back end to get output as 

Hour  Sales

  1        500

2 Replies
Chanty4u
MVP
MVP

Hi try this

a:
LOAD * , AutoNumber( hour & '|' & sales) AS UID
Inline [
hour , sales

20 , 1000

];
b:

LOAD * , AutoNumber( Hour & '|' & Sales) AS UID inline[
Hour ,Sales

19 , 500
];

EXIT SCRIPT;

hr.PNG

Reyyeess
Contributor
Contributor

Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.