<?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: Session Length from Power BI Rest APIs in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Session-Length-from-Power-BI-Rest-APIs/m-p/3378183#M43868</link>
    <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, these part is not logged into the activity event logs. Normally these log only trace the operations start datetime and hard to trace the end datetime.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For your requirement, you may need to manually trace and analysis the detail event logs to remark the tags.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For example, user open a report and he do to another actions(e.g. logout, open another report, access and interact not related contents).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can set a timeout duration to trace if user continue previous operations(if no related contents operation logs added), then you can consider the next event start time or the expired datetime(start time + timeout duration) as the end time about previous operation.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;BTW, you can also try to submit an idea to add the exit log when leave from a report.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ideas.fabric.microsoft.com/" target="_blank"&gt;Microsoft Power BI ideas&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 02:35:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-14T02:35:13Z</dc:date>
    <item>
      <title>Session Length from Power BI Rest APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Session-Length-from-Power-BI-Rest-APIs/m-p/3374466#M43826</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the Power BI REST APIs to pull usage data across the Power BI tenant. Requirements I have not been able to meet are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Calculating average session length on Power BI per user/workspace, report, etc.&lt;/LI&gt;&lt;LI&gt;Calculating maximum session length on Power BI per user/workspace, report, etc.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;'Session' can be thought of as the length of time spent on Power BI per user/workspace, report, etc.. For example, how long is a user viewing a particular report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have reviewed the REST API documentation but have not found anything to help with this query:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'Get Activity Events' API only returns a column 'creationTime', and no indication of end time/session duration (see API documentation at the below link).&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/admin/get-activity-events&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a REST API or another method I can use to find this data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 14:33:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Session-Length-from-Power-BI-Rest-APIs/m-p/3374466#M43826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-10T14:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Session Length from Power BI Rest APIs</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Session-Length-from-Power-BI-Rest-APIs/m-p/3378183#M43868</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;AFAIK, these part is not logged into the activity event logs. Normally these log only trace the operations start datetime and hard to trace the end datetime.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For your requirement, you may need to manually trace and analysis the detail event logs to remark the tags.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;For example, user open a report and he do to another actions(e.g. logout, open another report, access and interact not related contents).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;You can set a timeout duration to trace if user continue previous operations(if no related contents operation logs added), then you can consider the next event start time or the expired datetime(start time + timeout duration) as the end time about previous operation.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;BTW, you can also try to submit an idea to add the exit log when leave from a report.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://ideas.fabric.microsoft.com/" target="_blank"&gt;Microsoft Power BI ideas&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 02:35:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Session-Length-from-Power-BI-Rest-APIs/m-p/3378183#M43868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-14T02:35:13Z</dc:date>
    </item>
  </channel>
</rss>

