Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
pankaj999
Contributor III
Contributor III

Last Year, Last Month and Last Quarter SAME DAY as of today

Hi,
I have following .qvd with Date as date_created and Numeric values as opp_value.


LOAD


date_created,

opp_value

FROM [lib://dbware/opps.QVD]

(qvd)


data looks something like this.


Capture.JPG

Now what I want to do with that data is to make a view as shown below :

Capture2.JPG

I want to show numbers as above table and filter by Year Month.


Now important to note that it has to be dynamic, for e.g. if I select 2016-03 then my current month will change to March of 2016 and so will years and quarters accordingly. Also if I select the month(today()) then it should match to the same exact number of days as of current month. This as of the same day would go for quarters months and years numbers.

I want to know the easiest approach to this problem, I looked over the community but didn't get anything solid.

I hope the problem statement is clear, if not I would be happy to clarify.

1 Solution

Accepted Solutions
vitaliichupryna
Creator III
Creator III

Hi Pankaj,

First you should create master calendar

Creating A Master Calendar

and then you can use following link as example:

YTQ, QTD, MTD and WTD

Thanks,

Vitalii

View solution in original post

2 Replies
vitaliichupryna
Creator III
Creator III

Hi Pankaj,

First you should create master calendar

Creating A Master Calendar

and then you can use following link as example:

YTQ, QTD, MTD and WTD

Thanks,

Vitalii

pankaj999
Contributor III
Contributor III
Author

Thanks VC

I already have a master calendar, now the other link is useful to some extent but like I said I need to move it by Year Month Filter and show last (M, Y, Q). Maybe need to modify the expressions but that's where I am stuck.