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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Sale Range

Dear All,

I am getting Sale for before September from below expression

sum({<Date={"<$(=floor(monthstart(vToday)))"}>}[Sale])/100000

Now I want from Today to last 6 months Sale

Can you please advise

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

For sales of today since last 6 months try like:

sum({<Date={">=$(=monthstart(vToday,-6)) <=$(=today())"}>}[Sale])/100000

View solution in original post

5 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

See this:

Set Analysis for Rolling Periods

Best regards,

D.A. MB

tresB
Champion III
Champion III

For sales of today since last 6 months try like:

sum({<Date={">=$(=monthstart(vToday,-6)) <=$(=today())"}>}[Sale])/100000

trdandamudi
Master II
Master II

May be as below:

=Sum({<Date= {"$(='>=' & Floor(MonthStart(vToday())-6) & '<=' & Floor(vToday())"}>} [Sale])/100000)

Anil_Babu_Samineni
MVP
MVP

If you want last 6 months Data

You can try this too

sum({< Date= {" <= $(=AddMonths(Today(),-6))"}>} Sale)

OR

sum({< Date= {" <= $(=MonthStart(Today(),-6))"}>} Sale)

OR

sum({< Date= {" <= $(=MonthStart(Today(),-6,0))"}>} Sale)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
prma7799
Master III
Master III
Author

I am using floor for default date