Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
bratman93
Contributor
Contributor

Expression dates

Hi everyone!

I have this expression

 =sum( If(Date>=MonthStart(Today(),-1) and Date<MonthStart(Today()) ,ErrandCounter))

which gives me the number of errands created the previous month. How do I change it so that it gives me number of errands current month?

Labels (1)
3 Replies
Mark_Little
Luminary
Luminary

Hi

sum( If(Date>=MonthStart(Today()) and Date<Today() ,ErrandCounter))

Should work

bratman93
Contributor
Contributor
Author

BIG THANKS

jonas_rezende
Specialist
Specialist

Hi, @bratman93 .

Please, try:

Sum({<Date = {">=$(=MonthStart(Today(1)))"}>} ErrandCounter)

I hope this helps!