Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Guys,
How to change this expression bellow so it gives me the value of year -1 until today 20/10
My calendar dimension contains : Calendar Date with that format : 20/10/2017
num(sum( {$<[Year of date]={$(=Max([Year of date])-1)}>} recharge_amount),'# ##0'))
Thanks in advance
Is Year of Date a year field or date field?
Year field
This?
num(sum( {$<[Year of date]={">= $(=Max([Year of date])-1) <=$(=Today())"}>} recharge_amount),'# ##0'))
May be this
num(sum( {$<[Year of date]={$(='>=' & (Max([Year of date])-1))}>} recharge_amount),'# ##0'))
I am assuming that you won't have future data in your app... if you do, then you will need to use date instead of year field
Hello Sunny,
Thanks
whene I use your expression i get this error:
Error: Error in set modifier ad hoc element list:
',' or ')' expected
the year field like this
your expression give me the total of 2016 and 2017 until today, I need the total of 2016 until 20/10/2016
Try this
num(sum( {$<[Year of date]={"$(='>=' & (Max([Year of date])-1))"}>} recharge_amount),'# ##0'))
Thanks Sunny, same thing as Anil, your expression give me the total of 2016 and 2017 until today, I need the total of 2016 until 20/10/2016