Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

All years and last month of current year expression

Hi!

Suppose I have data from 2012 to July 2013, I would want an expression to calculate sales from inception that's the entire 2012 and 2013 up to June only.

Thanks

1 Solution

Accepted Solutions
MayilVahanan

Hi

try like this

Sum({<Date={'>=$(=vStartDate)<=$(=vEndDate)'}>} Sales)

where vStartDate = Min(Date)

vEndDate = MonthEnd(AddMonths(Max(Date),-1))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

1 Reply
MayilVahanan

Hi

try like this

Sum({<Date={'>=$(=vStartDate)<=$(=vEndDate)'}>} Sales)

where vStartDate = Min(Date)

vEndDate = MonthEnd(AddMonths(Max(Date),-1))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.