Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi. I am trying to sum a field from a certain date onwards. This works:
sum(if(KEY_Date>='2011/06/01',NumberRegistered))
The set analysis approach which actually what I want does not work:
sum({$<KEY_Date={">=2011/06/01"}>}NumberRegistered)
Can someone tell me where I am going wrong? Thanks very much.
Hi,
The syntax should be
Sum({< KEY_Date = {">=$(=Date('2011/06/01'))"}>}NumberRegistered)
Provided your regional settings in your operating system are set to 'YYYY/MM/DD', otherwise you will need to modify them or make some formatting in the script.
Hope that helps.
BI Consultant
Hi,
The syntax should be
Sum({< KEY_Date = {">=$(=Date('2011/06/01'))"}>}NumberRegistered)
Provided your regional settings in your operating system are set to 'YYYY/MM/DD', otherwise you will need to modify them or make some formatting in the script.
Hope that helps.
BI Consultant
Thanks Miguel - works perfectly!