Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Trying to only calculate spend where a certain date field is greater than 12/01/2014. Current syntax I have is below but it is not working:
sum({<
Date = Date > {'12/01/2014'} }>}
Spend)
Any help is appreciated.
Thank you,
- dave
This will work. However you may not want a static/hard coded date search parameter.
Sum({$< [Data Type]={'A'} , Date={"> 12/01/2014"}>} Spend)
Try
sum(
{<Date = {">'12/01/2014'"} >}
Spend)
This will work. However you may not want a static/hard coded date search parameter.
Sum({$< [Data Type]={'A'} , Date={"> 12/01/2014"}>} Spend)
That did not seem to work. I have an additional statement in the set analysis ... Maybe this is why it does not work ...
sum({<
[Data Type]={'A'},
Date = {">'12/01/2014'"}>}
[Spend])
Brian - Copied and pasted your solution verbatim but its not working for me. Perhaps I am doing something wrong ...
EDIT: I had an extra space between > and the date ... This now works. Thank you .
Your welcome, Glad it worked.
Yeah Set Analysis is not to forgiving on syntax issues.
try this:-
Sum({$< [Data Type]={'A'} , Date={"> 12/01/2014"}>} Spend)
Yeah the extra space was my bad. Glad you got it to work
Hi Brian, I have tried all these below and my value each time has been ZERO (0)
I have ran this in my database and answer should be 10
Do you see anything I am doing wrong (im thinking it can be a date format issue perhaps ?)
*** FAILED ATTEMPTS ***
COUNT({$<DELIVERY_DATE = {">04/12/2018"}>} ITEM_NAME)
COUNT({$<DELIVERY_DATE = {">04/12/2018"}>} ITEM_NAME)
COUNT({$<DELIVERY_DATE = {">'04/12/2018'"} >}ITEM_NAME)
COUNT({$<DELIVERY_DATE = {">'04/12/2018'"}>}[ITEM_NAME])
COUNT({$<DELIVERY_DATE = {">04/12/2018"}>}[ITEM_NAME])
COUNT({$<DELIVERY_DATE = {'>04/12/2018'}>}[ITEM_NAME])