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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
diogoduarte
Partner - Contributor III
Partner - Contributor III

AsOfDate Table

Hi, i have a simple table with dimension month and i need calculate the sum of sales for last 90 days, but with set analyses returns the result only the last month.

I use the expression Sum({$<Dia={"$(=Date(Max(Dia)))"} , Flag={"60 Dias"} >} Vendas), but the function Date(Max(Dia)) does not run per line, returns only the maximum date of the data.

1 Reply
Channa
Specialist III
Specialist III


=Sum({$<[Ship Date]={">=$(=MonthStart(Today(),-3))<$(=monthend(Today(),0))"}>}Sales)

 

try to use similar 

 

if you don't have date try to add date column in DB first date of every month

 

Channa