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 systems

per system = total number of hrs/ total number of systems

appreciate , suggestions.

found solution.

  1. 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.

  1. in visualization, using "first" function, exclude duplicates.

    for example:

    first([total number of hrs]) / first([total number of systems] [per system value]

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -