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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
chrisjackson
Contributor
Contributor

Month to Date Yesterday

Hi

I'm trying to use a MonthToDate formula but only include up to yesterday. I thought this would be easy using the formula below, but it includes transactions from today as well. Is there something obviously wrong with the formula?

SUM({$<Date = {'>=$(=MonthStart(Today()-1))<=$(=MonthEnd(Today()-1))'}>}Sales)

Thanks

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

Sum({$<Date = {'>=$(=MonthStart(Today()-1))<=$(=Date(Today()-1))'}>}Sales)

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

Sum({$<Date = {'>=$(=MonthStart(Today()-1))<=$(=Date(Today()-1))'}>}Sales)

its_anandrjs
Champion III
Champion III

It is absolutely correct

and why not only use today()


SUM({$<Date = {'>=$(=MonthStart(Today()-1))<=$(=Today())'}>}Sales)


Or


SUM({$<Date = {'>=$(=MonthStart(Today()-1))<=$(=Date(Today()-1))'}>}Sales)