The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi Every one,
I developed a calculated column as below for cumulative line to sum actual man hours , but it doesnt sum up at all !
Cumulative Actual = CALCULATE ( sum ( 'PBI LabourCode_Actual'[ActualsManHours] ), FILTER ( ALL ( 'PBI LabourCode_Actual'), 'PBI LabourCode_Actual'[WorkDate] <= MAX ( 'PBI LabourCode_Actual'[WorkDate] ) ) )
As you can see in the above table, cumulative data is showing wrong numbers
Solved! Go to Solution.
Hi,
Create a Calendar Table and build a relationship from the WorkDate column of the PBI LabourCode_Actual Table to the Date column of the Calendar Table. In your visual, drag Date from the Calendar Table. Write this measure
Cumulative Actual =
CALCULATE (
sum ( 'PBI LabourCode_Actual'[ActualsManHours] ),DATESYTD(Calendar[Date],"31/12"))
Hope this helps.
Hi,
Create a Calendar Table and build a relationship from the WorkDate column of the PBI LabourCode_Actual Table to the Date column of the Calendar Table. In your visual, drag Date from the Calendar Table. Write this measure
Cumulative Actual =
CALCULATE (
sum ( 'PBI LabourCode_Actual'[ActualsManHours] ),DATESYTD(Calendar[Date],"31/12"))
Hope this helps.
You are welcome.
@Anonymous ,
Modify the measure as below and check if it can meet your requirement.
Cumulative Actual =
CALCULATE (
SUM ( 'PBI LabourCode_Actual'[ActualsManHours] ),
ALLEXCEPT ( 'PBI LabourCode_Actual', 'PBI LabourCode_Actual'[Date] )
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous Please try changing your logic as below
Cumulative Actual = CALCULATE ( sum ( 'PBI LabourCode_Actual'[ActualsManHours] ), FILTER ( ALL ( 'PBI LabourCode_Actual'), 'PBI LabourCode_Actual'[WorkDate] <= EARLIER ( 'PBI LabourCode_Actual'[WorkDate] ) ) )
Proud to be a PBI Community Champion
User | Count |
---|---|
65 | |
62 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
83 | |
68 | |
49 | |
46 |