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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.