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
Anonymous
Not applicable

New column that shows Start and finishing time

Hi all, 

imagine help.png

I want to create a new column that shows me the start time minus the finishied time row for row. If you see its the packed time coulmn. 
So when a new bk charge number starts, this calculation starts again row for row and the end result is shown in a new coulmn. 

I need a formlen i can use. 

thanx in advance. 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Please try this calculated column below.

 

Column =
VAR a =
    CALCULATE ( MIN ( 'Table1'[Minutes] ), ALLEXCEPT ( Table1, Table1[Charge Nr] ) )
RETURN
    IF ( 'Table1'[Minutes] = a, BLANK (), 'Table1'[Minutes] - a )

result_.PNG

 

I'm not clear about your data type of Minutes, but you could refer to the formula above.

 

If you still need help, please tell me what data type of your mintue column so that we could help further on it.

 

Best  Regards,

Cherry

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

View solution in original post

3 REPLIES 3
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

I'm a little confused about your scenario. 

 

Do you want to calculate the difference between the start time and the finish time?

 

Based on your image, I'm a little confused about the finish time, could you give me example?

 

If it is convenient, could you share your data sample as table format and your desired output so that I can copy and test to get the formula of the calculated column.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi, 

I can not sorry share this data, I am sorry for that. But I just want to calculate the time from row to row.  

For examble               Charge Nr            new coulmn output ( need formula for this )

13 minutes                 41111                  

20 minutes                41111                       7 minutes 

24 minutes                41111                       11 minutes

30 minutes                 41111                       17 minutes 

4 minutes                   42222

10 minutes                42222                          6 minutes

15 minutes               42222                           11 minutes





So if you see the coulmn packed time, it has same charge number but the time increases row by row. So I just want to make a calculation that sums up how much time one row used, added with the next one. 

So when a new charge number starts, it will start to calculate again 

Hope this was much more clear.

BR


Hi @Anonymous,

 

Please try this calculated column below.

 

Column =
VAR a =
    CALCULATE ( MIN ( 'Table1'[Minutes] ), ALLEXCEPT ( Table1, Table1[Charge Nr] ) )
RETURN
    IF ( 'Table1'[Minutes] = a, BLANK (), 'Table1'[Minutes] - a )

result_.PNG

 

I'm not clear about your data type of Minutes, but you could refer to the formula above.

 

If you still need help, please tell me what data type of your mintue column so that we could help further on it.

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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.