r - Moving average divided by moving average -
i know can use inbuild function “moving average” calculate rolling average specific intervals 3 months, 12 months, etc.. possible divide 2 moving average values “per system value”.
for example:
moving average 1: total number of hrs moving average 2: total number of systemsper system = total number of hrs/ total number of systems
appreciate , suggestions.
found solution.
- create simple calculated column using "over" & "intersect" function calculate moving average . for example:
sum([total number of hrs) on (intersect(lastperiods(12,[yr_mn]),[xxx])) / 12
"
also use same logic calculate moving average total number of systems.
- in visualization, using "first" function, exclude duplicates. for example:
first([total number of hrs]) / first([total number of systems] [per system value]
Comments
Post a Comment