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
Post a Comment