<?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 AVG SSession Time Format in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVG-SSession-Time-Format/m-p/1623054#M32771</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;I calculate average time in this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AVG_Session_Time = 
AVERAGEX(
    SUMMARIZE(
         Full_Table_Events,
         Full_Table_Events[ga_session_id] ,
         "_1", MIN('Full_Table_Events'[event_timestamp]) ,
          "_2", MAX('Full_Table_Events'[event_timestamp])
          ),
           DATEDIFF([_1],[_2],MINUTE)
           )
          &lt;/LI-CODE&gt;&lt;P&gt;The result looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But is not 7 minutes and 84 seconds. This 7 minutes and 84% from the minute.&amp;nbsp; So it must be 00:07:50.&lt;BR /&gt;&lt;BR /&gt;Is it possible to get a result in such a format?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 09:05:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-26T09:05:37Z</dc:date>
    <item>
      <title>AVG SSession Time Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVG-SSession-Time-Format/m-p/1623054#M32771</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I calculate average time in this way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AVG_Session_Time = 
AVERAGEX(
    SUMMARIZE(
         Full_Table_Events,
         Full_Table_Events[ga_session_id] ,
         "_1", MIN('Full_Table_Events'[event_timestamp]) ,
          "_2", MAX('Full_Table_Events'[event_timestamp])
          ),
           DATEDIFF([_1],[_2],MINUTE)
           )
          &lt;/LI-CODE&gt;&lt;P&gt;The result looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But is not 7 minutes and 84 seconds. This 7 minutes and 84% from the minute.&amp;nbsp; So it must be 00:07:50.&lt;BR /&gt;&lt;BR /&gt;Is it possible to get a result in such a format?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 09:05:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVG-SSession-Time-Format/m-p/1623054#M32771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-26T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: AVG SSession Time Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVG-SSession-Time-Format/m-p/1623085#M32773</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Seems like you would need to convert this to the total number of seconds like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = INT([Column1]) * 60 + (([Column1] - INT([Column1])) * 60)&lt;/LI-CODE&gt;
&lt;P&gt;That's just an example. You could then apply the formatting technique per something like Chelsie Eiden's Duration:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Chelsie-Eiden-s-Duration/m-p/793639#M389&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 09:19:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AVG-SSession-Time-Format/m-p/1623085#M32773</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-01-26T09:19:50Z</dc:date>
    </item>
  </channel>
</rss>

