Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What is wrong with this expression?
Sum({<$(vTTLStartDate)={'4/1/2015'}>}((DCrating - AdmitRating) * NumGoal))
/
Sum({<$(vTTLStartDate)={'4/1/2015'}>} NumGoal)
I have confirmed that the variable does contain 4/1/2015. The variable was created by taking the Min of a date field.
$(vTTLStartDate) has to be a Field within the set modifier - what expression hides beneath the variable?
min(Date(FromDate))
Hi Mark,
Try this:
Sum({<$(=vTTLStartDate)={'4/1/2015'}>}((DCrating - AdmitRating) * NumGoal))
/
Sum({<$(=vTTLStartDate)={'4/1/2015'}>} NumGoal)
That didn't work. Just get a - in the object
may be it could be a conflict with the date formats. Are the formats same?
I confirmed that the variable displays 4/1/2015
May be this:
Sum({<KeyField ={" =$(vTTLStartDate) = '4/1/2015' "}>}((DCrating - AdmitRating) * NumGoal))
/
Sum({<KeyField ={" =$(vTTLStartDate) = '4/1/2015' "}>}} NumGoal)
reddys310 this would not work, you need to have a Field on the left hand of the equation within the set modifier.
Actually if the variable is getting evaluated to 4/12015, you might be looking to do this:
Sum({<FromDate={'$(=$(vTTLStartDate))'}>}((DCrating - AdmitRating) * NumGoal))
/
Sum({<FromDate={'$(=$(vTTLStartDate))'}>}} NumGoal)