Forum Discussion
Summing Specific Rows by Quarters
I do have a date column in the data already. It is a full date and the column name is LiveP_ConstructionCompletedDate
When i try your formula i have the below but i get an error message that the Syntax for "," is incorrect.
Under Construction Calc = SUM('Building Live Data'[LiveP_SFInt])
,DATESINPERIOD('Building Data'[ConstructionCompletedDate]
,FIRSTDATE('Building Data'[ConstructionCompletedDate])
,8,QUARTER))
Any idea?
Hi Brendan_1,
You lost Calculate() function in your measure. Please double check Brendan_1's measure:
Best Regards,
Qiuyun Yu
- Phil_Seamark9 years agoMicrosoft Employee
Sorry, I think I had a typo in the formula
Measure = CALCULATE( SUM('Table1'[LiveP_SFInt]), DATESINPERIOD( Table1[My Column], FIRSTDATE('Table1'[My Column]) ,8, QUARTER) )- Phil_Seamark9 years agoMicrosoft Employee
Oh and the Column required for the above calc should be this
My Column = DATE( 'Table1'[Year], (RIGHT('Table1'[Quarter],1) * 3) - 2, 1)- Brendan_19 years agoAdvocate I
Phil,
Thanks for all your help. The formulas are calculating but it is returning the buildings that were just built in that quarter. It isn't adding the next eight quarters together. Here are my formulas. Am I doing something wrong?
Under Construction Calc = CALCULATE(SUM('Building Live Data'[LiveP_SFInt])
,DATESINPERIOD('Building Live Data'[Column for Under Construction]
,FIRSTDATE('Building Live Data'[Column for Under Construction])
,8,QUARTER))Column for Under Construction = DATE('Building Live Data'[LiveP_ConstructionCompletedDate].[Year],(RIGHT('Building Live Data'[LiveP_ConstructionCompletedDate].[Quarter],1)*3)-2,1)