Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, the 3 month rolling average formula in my chart is:
num(rangeavg(above(sum({<MatchingsMonth=,MatchingsDate=>}
Revenue),0,3)),'#,##0')
I have month and week as a cyclic group in the chart dimension. When I switch to week, I'd need the formula to change to
num(rangeavg(above(sum({<MatchingsMonth=,MatchingsDate=>}
Revenue),0,12)),'#,##0')
How can I automatically change the formula when switching from month to week? Thanks.
Try like:
If(GetCurrentField(GroupName)='week', <this formula>, <that formula>)
Try like:
If(GetCurrentField(GroupName)='week', <this formula>, <that formula>)
Thanks. Just FYI it seems to only work with double quotes, i.e. GetCurrentField("GroupName")
If there is space in between your group name, then only double quotes or squre brackets would be required. Learn about it here: quoteology