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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
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

May be this

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

View solution in original post

2 Replies
sunny_talwar

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)