Forum Discussion

saranga's avatar
saranga
New Member
5 years ago
Solved

Custom Sum for Date (measure) field

I have a measure that returns a date field in the following format

FORMAT(dateVal,"dd:hh:mm")
I need to SUM the total of the results in the measured field and show it in a Card
The requirement is to do the summation as 8 hours equal 1 day.
I didn't find a method to write a DAX for the Card
Is there any solution for my requirement?

  • Hi saranga,

     

    According to the conditions you provided, I did the following test: created two measures, Duration measure is used to count the sum of time, and Day measure is used to count the number of days.

    Here is the sample pbix file.

     

    Best Regards,
    Henry

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

4 Replies