Hello @msnel ,
Yes, this is possible. The problem in your approach is that VA doesn't currently allow nested aggregated expressions i.e. aggregated operators inside aggregated operators. So we have to use an approach that avoids this.
VA 8.3 introduced capability to create an aggregated data source which allows us to create SpeedAv without using aggregated operators.
Step A: Create aggregated data source
In the Data pane, select a data source.
Click Action icon
, and then select New data from aggregation of data-source. The New Aggregated Data window is displayed.
Select the data items AgeGroup, Year, Distance, Time to add to the aggregated data source in the Available items list. Then, click +> to move it to the Selected items list.
(Optional) Change the name of the aggregated data source in the Name field.
Click Ok. The new aggregated data source is available in the Data pane.
Step B: Create SpeedDiff
Create a new Calculated Item SpeedDiff = RelativePeriod(_Sum_, 'SpeedAv'n, _IgnoreAllTimeFrameFilters_, 'Year'n, _Inferred_, 0, _Full_, {Date}) - RelativePeriod(_Sum_, 'SpeedAv'n, _IgnoreAllTimeFrameFilters_, 'Year'n, _Inferred_, -1, _Full_, {Date})
Congrats, you are done 😃 Now just use your newly create aggregated measure SpeedDiff in List Table.
I hope this helps!
Best regards,
Petri
... View more