Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
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