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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
harsha087
Contributor III
Contributor III

ytd and previous on single date

Hi All,,

In the below table, i have date as dimension and two measures (19/20 and ytd) . 

i need to get the previous year data for a particular period as well as  current period .

harsha087_0-1631533815879.png

in the above table , for 08/04/20 .. 19/20 should show the sum of sales happened on 08/04/2019  and in ytd it should show the sum of sales happened on 08/04/20. 

please can anyone help me 

 

 

Labels (1)
1 Solution
3 Replies
sunny_talwar

I suggest creating The As-Of Table in the script to handle this in a most efficient manner

harsha087
Contributor III
Contributor III
Author

i am unable to do it .. 

do u you help me reference example or code