cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Regular Visitor

## Ticket Duration by Support Group

Ticket duration by group Help please Would like to get some guidance to create DAX formula for ticket duration between groups.

1 ACCEPTED SOLUTION
Community Support

Hi  @NewBie0322 ,

Here are the steps you can follow：

1. Create calculated column.

``````Duration =
var _current=
MAXX(
FILTER(ALL('Table'),'Table'[Ticket Number]=EARLIER('Table'[Ticket Number])&&'Table'[Ticket Update Date]=EARLIER('Table'[Ticket Update Date])),[Ticket Update Date])
var _Last=
MAXX(
FILTER(ALL('Table'),'Table'[Ticket Number]=EARLIER('Table'[Ticket Number])&&'Table'[Ticket Update Date]<EARLIER('Table'[Ticket Update Date])),[Ticket Update Date])
var _datediff1=
DATEDIFF(
_Last, _current,MINUTE)
return
IF(
'Table'[Ticket Resolve Date]=BLANK(),_datediff1,
DATEDIFF(
[Ticket Update Date],[Ticket Resolve Date],MINUTE))``````
``Total Ticket Duration = SUMX(ALL('Table'),[Duration])``

2. Result:

7:20 AM – 9:39 AM The intermediate minutes are 139.

Best Regards,

Liu Yang

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

Community Support

Hi  @NewBie0322 ,

Here are the steps you can follow：

1. Create calculated column.

``````Duration =
var _current=
MAXX(
FILTER(ALL('Table'),'Table'[Ticket Number]=EARLIER('Table'[Ticket Number])&&'Table'[Ticket Update Date]=EARLIER('Table'[Ticket Update Date])),[Ticket Update Date])
var _Last=
MAXX(
FILTER(ALL('Table'),'Table'[Ticket Number]=EARLIER('Table'[Ticket Number])&&'Table'[Ticket Update Date]<EARLIER('Table'[Ticket Update Date])),[Ticket Update Date])
var _datediff1=
DATEDIFF(
_Last, _current,MINUTE)
return
IF(
'Table'[Ticket Resolve Date]=BLANK(),_datediff1,
DATEDIFF(
[Ticket Update Date],[Ticket Resolve Date],MINUTE))``````
``Total Ticket Duration = SUMX(ALL('Table'),[Duration])``

2. Result:

7:20 AM – 9:39 AM The intermediate minutes are 139.

Best Regards,

Liu Yang

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

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - June 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors