Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
BlastS
Helper I
Helper I

Calculate/SumAll Duration in specific intervals

I have been working with a litle of dax function but still i am strunglig to get this exact thing which is:

 

I have as columns:

 

IndexTIMEColumnFDurationColumnX
130/07/2012 00:01:10   
230/07/2012 00:01:200100
330/07/2012 00:01:300100
430/07/2012 00:01:400100.2
530/07/2012 00:01:500100.2
630/07/2012 00:02:000100.2
730/08/2012 00:02:101100
830/07/2012 00:02:200100
930/07/2012 00:02:300100.2
1030/07/2012 00:02:400100.2
1130/07/2012 00:02:501100
1230/07/2012 00:03:000100

 

The Output Should be = 50 (30 + 20)   in format like dd:HH:mm:SS ( 00 00:50:00)

 

What i want to do is to sum all the time duration when columnX is 0.2 (how can i sum each individually ) ?

 

How can i achieve this on powerbi ? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

See if this helps:

Measure = 
CALCULATE(
    SUM(Table1[Duration]),
    Table1[ColumnX]=.20
)

Simple Calc.png

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

See if this helps:

Measure = 
CALCULATE(
    SUM(Table1[Duration]),
    Table1[ColumnX]=.20
)

Simple Calc.png

Hi, @Anonymous

 

That helps a litle but its not that i am exactly looking for. After that how you would convert to datetime?

Anonymous
Not applicable

Sorry, dont follow.  Could you possibly put what your expected output would be?

HI, @Anonymous

Like each 10 of duration its 10 min so the output after sum all should be like 0 00:50:00 (means 0 days 0 hours 50 min 0 sec)

Hi @BlastS,

 

Here is a blog for your reference, please refer to it to convert minutes to duration.

Aggregating Duration/Time

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.