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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.