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: 
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 . 🙂

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

tresesco
MVP
MVP

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