Using result of an Expression in Aggregate function
Hello All,
I am trying to use result of one of my expression in an aggregate function. But it says "bad field name". I know we cannot use them inside aggregate function. Is there any alternative to do this? Below is an Example.
Exp1: date(salesdate) - Label- Startdate
Exp2: Sum(if(salesdate>=Startdate and salesdate<=addmonths(Startdate,6),SalesQuantity,0))