Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
DS14
Partner - Contributor III
Partner - Contributor III

Pull the value based on max (date) from each month with the previous value.

Hi Experts,

I have the data let say

Table1:

Date                CP
1.01.201825
3.01.201812
17.01.2018    23
4.02.2018      43
13.02.2018   54
15.03.2018 13
16.04.2018   44

 

and I need the output

Date

Current CP

(Based on Max date in every month)

Previous CP

(Just previous value to current CP)

Difference (Current CP - Previous CP)
17.01.2018    231211
13.02.2018   544311
15.03.2018 1354-41
16.04.2018   441331


where i have to get Current CP based on Max date present in each month and the previous CP will be just previous value of Current CP value. How can I achieve this.

Please help if you can.

Thanks in advance.

1 Reply
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand