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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
andrekroker
Resolver I
Resolver I

Total completed work for work item

Folks,
Considering the following table, and the statements below:

  • Every day, the base is updated. Yesterday date becomes false, and a new line for current day is created with ‘Is Current’ = True
  • This means that, the completed work for each work item just refreshes every day. Completed work should not be read as a sum of the field throughout all days.
SprintSprint End DateSprint Start DateWork Item IdStateWork Item TypeCompleted WorkDateIs Current
Sprint 625-May18-May23451ActiveTask518-MayFalse
Sprint 625-May18-May23810ActiveTask418-MayFalse
Sprint 625-May18-May23810ActiveTask419-MayTrue
Sprint 625-May18-May23451ActiveTask619-MayTrue
Sprint 518-May11-May23451NewTask011-MayFalse
Sprint 518-May11-May23451NewTask012-MayFalse
Sprint 518-May11-May23451ActiveTask013-MayFalse
Sprint 518-May11-May23451ActiveTask014-MayFalse
Sprint 518-May11-May23451ActiveTask015-MayFalse
Sprint 518-May11-May23451ActiveTask016-MayFalse
Sprint 518-May11-May23451ActiveTask017-MayFalse
Sprint 518-May11-May23810ActiveTask014-MayFalse
Sprint 518-May11-May23810ActiveTask015-MayFalse
Sprint 518-May11-May23810ActiveTask016-MayFalse
Sprint 518-May11-May23810ActiveTask017-MayFalse
Sprint 518-May11-May23815ClosedTask412-MayFalse
Sprint 518-May11-May23815ClosedTask413-MayFalse
Sprint 518-May11-May23815ClosedTask414-MayFalse
Sprint 518-May11-May23815ClosedTask415-MayFalse
Sprint 518-May11-May23815ClosedTask416-MayFalse
Sprint 518-May11-May23815ClosedTask417-MayFalse
Sprint 518-May11-May23815ClosedTask418-MayFalse
Sprint 518-May11-May23815ClosedTask419-MayTrue
Sprint 411-May04-May23451NewTask005-MayFalse
Sprint 411-May04-May23451NewTask006-MayFalse
Sprint 411-May04-May23451NewTask007-MayFalse
Sprint 411-May04-May23451NewTask008-MayFalse
Sprint 411-May04-May23451NewTask009-MayFalse
Sprint 411-May04-May23451NewTask010-MayFalse

 

I want to know:

  1. What is the total amount of completed work for each work item.
    I´ve came up with this: 
    Total Completed Hours = CALCULATE(SUM(Table[Completed Work]), LASTDATE(Table[Date]))
    Is it correct or appropriate?

  2. What is the total amount of completed work for each work item for each sprint.
1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
Community Support

Hi @andrekroker ,

 

We can use the following measure to meet your requirement.

 

the total amount = CALCULATE(SUM('Table'[Completed Work]), FILTER('Table','Table'[Date]<TODAY()))

 

You can create a table visual like this, if you want to calculate the total amount of completed work for each work item.

 

Total 1.jpg

 

You also can create a table visual like this to calculate the total amount of completed work for each work item for each sprint.

 

Total 2.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-zhenbw-msft
Community Support
Community Support

Hi @andrekroker ,

 

We can use the following measure to meet your requirement.

 

the total amount = CALCULATE(SUM('Table'[Completed Work]), FILTER('Table','Table'[Date]<TODAY()))

 

You can create a table visual like this, if you want to calculate the total amount of completed work for each work item.

 

Total 1.jpg

 

You also can create a table visual like this to calculate the total amount of completed work for each work item for each sprint.

 

Total 2.jpg

 

If it doesn’t meet your requirement, could you please show the exact expected result based on the table that you have shared?

BTW, pbix as attached.

 

Best regards,

 

Community Support Team _ zhenbw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you a lot!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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