Sum of Task based on Closed Date

Mavericks334

Active Member
Joined
Jan 26, 2011
Messages
280
Hi,

I have four columns One is the ID, assigned date, closed, date and no of tasks completed. The assigned date is in a relationship with the calendar date table. I created measures to calculate the number of ID's assigned in a month. It gives me the right value. However when i try to get the sum of task completed by the end of the month, it gives me incorrect value. I have created two calculated columns. Below are the measures.

Assigned Month End: =Related(Calendar[MonthEnd])
Closed Month End= EOMonth([Closed Date])

Count of IDS assigned= Calculated(Count[Assigned Month End],Datesbetween(Calendar[Dates],[Selected_Month_Start_Date],[Selected_Month_End_Date])

Sums of Tasks Completed =Calculated(SUM[No Of Tasks Completed],Datesbetween(Calendar[Dates],[Selected_Month_Start_Date],[Selected_Month_End_Date])

BEcause of the relationship between the assigned date and DAtes table. Instead of getting values for the current month the values are being aggregated in the previous month.

Any suggestions how to do it.


-- removed inline image ---
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I am sure there are many ways of doing this. The way I would do it is create a second (inactive) relationship between the closed Date and the calendar table.

Then you can have measures that work for the different dates

Total Tasks = sum(data[No of Tasks Competed]) This one uses the create date.
Total Tasks Closed =calculate([Total Tasks],USERELATIONSHIP(Data[Closed Date],Calendar[Date])

This is probably not 100% what you are after, but it may give you enough idea of how this approach works to work it out.
 
Upvote 0

Forum statistics

Threads
1,224,151
Messages
6,176,717
Members
452,740
Latest member
MrCY

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top