Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Calculate difference between categories

I'm looking for a method to show the difference in velocity between project ending dates.

Represented here is the average velocity achieved between project end dates.

 

 

 

So, I'd want to create a graph that would show:

 

Velocity11.811.50.91.51.20.511.10.80.60
 2/18/20213/4/20213/18/20214/1/20214/15/20214/29/20215/13/20215/27/20216/10/20216/24/20217/15/20217/29/20218/12/2021
Difference10.8-0.80.5-0.60.6-0.3-0.70.50.1-0.3-0.2-0.6

 

+0.8 (delta between 1 and 1.8)

-0.8 (delta between 1.8 and 1.0)

+0.5 (delta between 1.0 and 1.5)

-0.4 (delta between 1.5 and 0.9)

.... and so on

 

I thought a quick measure to show variance in velocity would solve this, but it does not.

Most all solutions around DAX and VAR I've found do not work in this instance, because 'velocity' is a calculated measure.

 

Any guidance would be much appreciated. Thank you!

  • Anonymous , Try a measure like

     

    measure =
    Var _last = maxx(filter(allselected(Table), Table[Date] < max(Table[Date])),Table[Date])
    return
    sum(Table[Velocity]) - calculate(sum(Table[Velocity]) ,filter(allselected(Table),Table[Date] =_max))

1 Reply

  • Anonymous , Try a measure like

     

    measure =
    Var _last = maxx(filter(allselected(Table), Table[Date] < max(Table[Date])),Table[Date])
    return
    sum(Table[Velocity]) - calculate(sum(Table[Velocity]) ,filter(allselected(Table),Table[Date] =_max))