Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
You should try something like this
max(
{$<PeriodCounter = {">$(#=max(PeriodCounter-12))<=$(#=max(PeriodCounter))"},[$Year Month]= >}
aggr(
sum({$<PeriodCounter = {">$(#=max(PeriodCounter-12))<=$(#=max(PeriodCounter))"},[$Year Month]= >}
[SalesAmount]
)
,[$Year Month])
)
You should try something like this
max(
{$<PeriodCounter = {">$(#=max(PeriodCounter-12))<=$(#=max(PeriodCounter))"},[$Year Month]= >}
aggr(
sum({$<PeriodCounter = {">$(#=max(PeriodCounter-12))<=$(#=max(PeriodCounter))"},[$Year Month]= >}
[SalesAmount]
)
,[$Year Month])
)
Daniel - you are a gentleman and a scholar! Fantastic! Thanks I've been pulling my hair out over this one.
Regards
Matthew
Thanks Daniel, absolutely great, worked first time, much appreciated
Regards Matthew
Sent from my iPad