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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
george456
Creator
Creator

Range between two Date - Set Anlaysis syntax

Dear Community

The following syntax is not behaving as excepted: 

RangeSum(Above(Sum({<_Date={">=$(vMaxMonth)<=$(vDataDateAS)"}>} Tonnage),0, RowNo())).

 

In short I only want accumulative sales data between the begin of month which is vMaxMonth and the most recent day sales 

george456_0-1739801323884.png

I am still getting sales for the days where there are no sales ( Future). The graph should stop on the 16th 

george456_1-1739801417368.png

Please can you help

 

Thanks

 

 

 

 

 

 

Labels (2)
1 Reply
MatheusC
Specialist II
Specialist II

Hi, try this:

if(FieldDay>$(=Date(today()-1,'DD')),null(),

RangeSum(Above(Sum({<_Date={">=$(vMaxMonth)<=$(vDataDateAS)"}>} Tonnage),0, RowNo())))


- Regards, Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!