Forum Discussion

ruhor's avatar
ruhor
Frequent Visitor
10 years ago
Solved

Running Average of Group Data

Hello, I am trying to create a measure for calculating the running average of accumulated monthly sales by manager. This might be a bit confusing, so to further explain: I would like to sum all sales...
  • MattAllington's avatar
    MattAllington
    10 years ago

     I assume this will work.

     

    Avg Monthly Sales = 
    divide(
    sum(data[sales]),
    distinctcount(data[name])
    )

     This assumes you put the manager's name and months in your visualisation