Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all!
I am struggling with such expression (percentage of rate's changing between 7 days):
1- Avg(index_1)/Avg({1<date = {'current date minus 7 days'}>}index_1)
Could you help me!?
Thanks! Marina
1- Avg(index_1)/Avg({1<date = {"$(=today()-7)"}>}index_1)
It's possible you need to set the date format too. If the date format of your date field is MM/DD/YYYY then you can try:
1- Avg(index_1)/Avg({1<date = {"$(=date(today()-7,'MM/DD/YYYY'))"}>}index_1)
O, thanks a lot, and how to transform this expression if I need "current by selected date - 7", not exactly "today")) .
date={"$(=max(date)-7)"}
Still, it is more reliable with date():
date={"$(=date(max(date)-7))"}
Set vSelDateMinus7 =date(max(date)-7)
1- Avg(index_1)/Avg({1<date = {'$(vSelDateMinus7 )'}>}index_1)
all these expressions doesnt work ( I try to use it in text box..
even Avg({1<date = {"$(= makedate(2015,4,30))"}>}index_1) doesnt show anything
What have I missed?
Looks fine... Are the field names correct? What if you use this:
avg({1<date = {'30/04/2015'}>}index_1)
(I assume that your date format is DD/MM/YYYY. Make corrections in the set if it is different)
Thank u very much!!! Ive done it!! there was a problem with data format~!