Forum Discussion
Dunner2020
Post Prodigy
5 years ago24 hrs sum column
Hi there, I have a data set that looks like as shown in the picture: In the data EpochHH is the unique number that represents the half-hour time slot of the given date. Now I want to cr...
- 5 years ago
Hi Dunner2020 ,
Please use the following calculated column:
24 hrs Value = CALCULATE(SUM('Fact Table'[30 Mins Value]),FILTER('Fact Table','Fact Table'[EpochHH]<=EARLIER('Fact Table'[EpochHH])+47 &&'Fact Table'[EpochHH]>=EARLIER('Fact Table'[EpochHH])))If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
amitchandak
Super User
5 years agoDunner2020 , Try a new column like
24 hrs Value =
CALCULATE(SUMX(FILTER('Fact Table','Fact Table'[EpochHH] >= earlier('Fact Table'[EpochHH]) && 'Fact Table'[EpochHH] <= earlier('Fact Table'[EpochHH])+ 47),'Fact Table'[30 Mins Value]))
Dunner2020
Post Prodigy
5 years agoamitchandak , When I used earlier function it throws an error message that parameter is not correct type as shown in the following picture: