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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Richard3
Contributor III
Contributor III

Display values of two different dates.

I need to compare the value of what was produced on a date this year against the value of what was produced on the same date but last year.
That is, I have a date table and an amount table and I want to know how much is the amount for 08/01/2022 and how much is the amount for 08/01/2021.

Labels (4)
1 Solution

Accepted Solutions
sidhiq91
Specialist II
Specialist II

@Richard3  You can write something like below: since you are specifically asking 08/01/2022 and 08/01/2021. It can written as below:

Table:

Load Date_Field,

       Amount

from table_name

where Date_Field=Date(Today()-2,'MM/DD/YYYY') or Date_Field=Date(Addyears(today()-2,-1),'MM/DD/YYYY');

View solution in original post

1 Reply
sidhiq91
Specialist II
Specialist II

@Richard3  You can write something like below: since you are specifically asking 08/01/2022 and 08/01/2021. It can written as below:

Table:

Load Date_Field,

       Amount

from table_name

where Date_Field=Date(Today()-2,'MM/DD/YYYY') or Date_Field=Date(Addyears(today()-2,-1),'MM/DD/YYYY');