Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

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.

 

EmmieAllaun_2-1629135884769.png

 

 

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!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@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))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.