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: 
MuraliPrasath
Creator III
Creator III

Set Analysis "Current Month to Date" Question.

Hi,

I've Current month start variable = vCurrentMonthStart

and Today's date variable = vToday.

Using this how to get the date values in between that is "Current Month to Date"

I tried the following expression please correct me.

sum({1<[PostingDate]={">=$(=date(vCurrentMonthStart) <= $(=date(vToday))"}>} DeliveredQty)

1 Solution

Accepted Solutions
tresesco
MVP
MVP

One bracket correction might do the job:

sum({1<[PostingDate]={">=$(=date(vCurrentMonthStart)) <= $(=date(vToday))"}>} DeliveredQty)

View solution in original post

4 Replies
MK_QSL
MVP
MVP

SUM({<PostingDate = {">=$(=MonthStart(Today()))<=$(=Today())"}>}DeliveredQty)

MK_QSL
MVP
MVP

Define your vCurrentMonthStart as

=Date(MonthStart(Today()))

Now you can use as below

=SUM({<PostingDate = {">=$(vCurrentMonthStart)<=$(=Today())"}>}DeliveredQty)

tresesco
MVP
MVP

One bracket correction might do the job:

sum({1<[PostingDate]={">=$(=date(vCurrentMonthStart)) <= $(=date(vToday))"}>} DeliveredQty)

sasiparupudi1
Master III
Master III

As tresesco says, you are missing a  bracket..

sum({1<[PostingDate]={">=$(=date(vCurrentMonthStart)) <= $(=date(vToday))"}>} DeliveredQty)

Make sure that your posting date is in the same format as the dates in your variable.

HTH

Sasi