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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

MTD for previous month

HI all,

I m confused and not getting the logic..... for calculating "Month To date" for previous Month.

Please help by providing code for same . 🙂

Labels (1)
2 Replies
maneshkhottcpl
Partner - Creator III
Partner - Creator III

Hi,

Please try the function.

=



addmonths(DateField,-1) . Ler me know is it useful or not?

Manesh Khot

tresB
Champion III
Champion III

I guess you want to calculate some amount for last MTD, if it is so, you can use something like this:

sum({Date={">=$(=MonthStart(today(),-1)) <=$(=Addmonths(today(),-1))"}>} Amount)

Regards, tresesco