gooddata - I would like to know how to define a metric to calculate 12 months moving average of a certain fact including current month -


i know how define metric calculate 12 months moving average of fact including current month. metric defined 'select avg('fact') month/year(date) between {this - 12} , {this}' hadn't worked expectedly displayed natural averages each month.

if want 1 number , not sliced month 'select avg('fact') month/year(date) between {this}-12 , {this}' should work (put -12 after date macro {this}).


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -