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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

what is the difference between Mtd and Lmtd?

what is the difference between Mtd and Lmtd?

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

MTD- Month to Date

When a date is selected and it will look for the Starting date of the Month to the selected date.

Ex: date selected is 14-02-2015 then MTD is 01-02-2015 to 14-02-2015.

MTD set analysis syntax as below:

Sum ({<Year=, Month=, Quarter=, Week=, DateField=, SalesDate= {">=$(=Num(MonthStart(Max(SalesDate))))<=$(=Max(SalesDate))"}>} Sales)

LMTD- Last Month to Date

When a date is selected and it will look for the Starting date of the Last Month to the selected date.

Ex: date selected is 14-02-2015 then LMTD is 01-01-2015 to 14-02-2015.

LMTD set analysis syntax as below:


Sum ({<Year=, Month=, Quarter=, Week=, DateField=, SalesDate= {">=$(=Num(MonthStart(Max(SalesDate,-1))))<=$(=Max(SalesDate))"}>} Sales)


Regards

Neetha

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi,

MTD- Month to Date

When a date is selected and it will look for the Starting date of the Month to the selected date.

Ex: date selected is 14-02-2015 then MTD is 01-02-2015 to 14-02-2015.

MTD set analysis syntax as below:

Sum ({<Year=, Month=, Quarter=, Week=, DateField=, SalesDate= {">=$(=Num(MonthStart(Max(SalesDate))))<=$(=Max(SalesDate))"}>} Sales)

LMTD- Last Month to Date

When a date is selected and it will look for the Starting date of the Last Month to the selected date.

Ex: date selected is 14-02-2015 then LMTD is 01-01-2015 to 14-02-2015.

LMTD set analysis syntax as below:


Sum ({<Year=, Month=, Quarter=, Week=, DateField=, SalesDate= {">=$(=Num(MonthStart(Max(SalesDate,-1))))<=$(=Max(SalesDate))"}>} Sales)


Regards

Neetha