<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Ticket Duration by Support Group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-Duration-by-Support-Group/m-p/3187592#M115468</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="544395" data-lia-user-login="NewBie0322" class="lia-mention lia-mention-user"&gt;NewBie0322&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Duration =
var _current=
MAXX(
    FILTER(ALL('Table'),'Table'[Ticket Number]=EARLIER('Table'[Ticket Number])&amp;amp;&amp;amp;'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])&amp;amp;&amp;amp;'Table'[Ticket Update Date]&amp;lt;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))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Total Ticket Duration = SUMX(ALL('Table'),[Duration])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;7:20 AM – 9:39 AM The intermediate minutes are 139.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 03:22:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-14T03:22:51Z</dc:date>
    <item>
      <title>Ticket Duration by Support Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-Duration-by-Support-Group/m-p/3184032#M115208</link>
      <description>&lt;P&gt;Ticket duration by group Help please Would like to get some guidance to create DAX formula for ticket duration between groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 12:52:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-Duration-by-Support-Group/m-p/3184032#M115208</guid>
      <dc:creator>NewBie0322</dc:creator>
      <dc:date>2023-04-12T12:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ticket Duration by Support Group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-Duration-by-Support-Group/m-p/3187592#M115468</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="544395" data-lia-user-login="NewBie0322" class="lia-mention lia-mention-user"&gt;NewBie0322&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated column.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Duration =
var _current=
MAXX(
    FILTER(ALL('Table'),'Table'[Ticket Number]=EARLIER('Table'[Ticket Number])&amp;amp;&amp;amp;'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])&amp;amp;&amp;amp;'Table'[Ticket Update Date]&amp;lt;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))&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Total Ticket Duration = SUMX(ALL('Table'),[Duration])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;7:20 AM – 9:39 AM The intermediate minutes are 139.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 03:22:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Ticket-Duration-by-Support-Group/m-p/3187592#M115468</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-14T03:22:51Z</dc:date>
    </item>
  </channel>
</rss>

