Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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!