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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
AjithPrasath
Resolver II
Resolver II

Need a measure for the logic stated

Hi Everyone,

   I have Sprint number column, offshore billable hours(measure) column . I also have constant offshore approved sow(lets say for ex: 11516). I have to create the new measure Remaining hours for calculating as per the below logic:

 

1. For first sprint alone(Ex: sprint0) I have to subtract offshore approved sow- offshore billable hours for Remaining hours.

2. From next sprint I have to subtract the previous value of the remaining hours  and offshore billable hours of the current row

 

lets say  offshore approved sow=100. The logic will be like below:

Sprint NumberOffshore Billable hoursRemaining hours
01090(100-10)
12070(90-20)
23040(70-30)
1 ACCEPTED SOLUTION

Remaining Hours=sow-calculate(sum(table[offshore billable]),table[sprint number]<=max(table[sprint number]),all(table[sprint]))

View solution in original post

4 REPLIES 4
AjithPrasath
Resolver II
Resolver II

@wdx223_Daniel  thank you for the timely help!!!

AjithPrasath
Resolver II
Resolver II

Hi @wdx223_Daniel ,

  When I tried to implement the above code, it is have small logic issue. For every sprint it is subtracting from the sow. But I need only for first sprint  to implement this logic. from nxt sprint I need to subtract from the previous remaining hr value. Please find the ss below with the above code logic:

AjithPrasath_0-1682492275732.png

For ex: sprint2==>I need 11324-832=10492 like this

           sprint3==> 10492-249=10243 

Remaining Hours=sow-calculate(sum(table[offshore billable]),table[sprint number]<=max(table[sprint number]),all(table[sprint]))

wdx223_Daniel
Super User
Super User

Remaining Hours=sow-calculate(sum(table[offshore billable]),table[sprint number]<=max(table[sprint number]))

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.