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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nigel987
Creator II
Creator II

Dynamic calculation of difference between values of different dates

Hi,

I have a counter for each day, and I want to calculate the growth between the selected dates. Thus, the user shall be able to select two dates from a listbox. Is there any way to achieve this, I tried straight table, pivot tables, above function, but cannot get the correct results.

GROWTH is the column I want to receive!

   

idDate16-10-1316-10-14Growth
11971981
21651672
33583624
41641684
52522553
62342395
76126120
81771814
91901922
10-44
1 Solution

Accepted Solutions
sunny_talwar

Are you looking to get this?

Capture.PNG

View solution in original post

8 Replies
alexis_garcia
Creator II
Creator II

Hi Nihal,

Try with the following expression:

Sum(Aggr(Growth),Date)

Regards.

nigel987
Creator II
Creator II
Author

Sorry, that was misleading. Growth is the output column I want to receive.

sunny_talwar

What are the two dates which are selected? 16-10-13 and 16-10-14? How does the raw data looks like? Would you be able to provide a sample where we can play around with this?

nigel987
Creator II
Creator II
Author

Hi, here is the raw data file. The user shall e.g. select 13.10.2016 and 17.10.2016 and I want to compute the grwoth (delta) between those dates.

nigel987
Creator II
Creator II
Author

Hi, has anyone a suggestion? I still cannot figure it out.

sunny_talwar

Are you looking to get this?

Capture.PNG

nigel987
Creator II
Creator II
Author

That was exactly what I was looking for. I need to study for solution though. Thank you Sunny!

sunny_talwar

This will sort of only work when you have made two selections, is there a possibility for more than two selection? How would the output look like in that case?