Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
lalitkgehlot89
Creator II
Creator II

Logic for MTD,LMTD,LYMTD,YTD.LYTD

Hi,

I have Product Qty and Product Amount and field Link_Date.

I want to show in chart Sum(Qty) and Sum(Amount) with these Time Frame.

Suppose My Last date is 08-03-2016

1) Month To Date ( Data should be From 01-03-2016 to 08-03-2016)

2) Last Month To Date  ( Data should be From 01-02-2016 to 08-02-2016)

3) Last Year Month To Date  ( Data should be From 01-03-2015 to 08-03-2015)

4) Year To Date  ( Data should be From 01-04-2015 to 08-03-2016)

5) Last Year To Date ( Data should be From 01-04-2014 to 08-03-2015)

Plz help me out to write the expression.

Thanks,

Lalit Kumar

5 Replies
vikasmahajan

Hope this helps you .

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
lalitkgehlot89
Creator II
Creator II
Author

Hi Vikas,

Thanks a lot, this is working for full month.

I need data of last month till date.

1) Month To Date ( Data should be From 01-03-2016 to 08-03-2016)

2) Last Month To Date  ( Data should be From 01-02-2016 to 08-02-2016)

3) Last Year Month To Date  ( Data should be From 01-03-2015 to 08-03-2015)

4) Year To Date  ( Data should be From 01-04-2015 to 08-03-2016)

5) Last Year To Date ( Data should be From 01-04-2014 to 08-03-2015)

vikasmahajan

Sorry for misunderstood refer this https://community.qlik.com/message/328412#328412

and YTQ, QTD, MTD and WTD

and Re: YTD/YTD LY, QTD/QTD LY, MTD/MTD LY calculations

Thanks

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan

go through this https://community.qlik.com/docs/DOC-4313

vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.