Forum Discussion

Dunner2020's avatar
Dunner2020
Icon for Post Prodigy rankPost Prodigy
5 years ago
Solved

24 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...
  • v-deddai1-msft's avatar
    v-deddai1-msft
    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