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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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!