<?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: How does PBI Report Server calculate usage in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3280950#M30101</link>
    <description>&lt;P&gt;safe to say we can only capture what the usage will be like but not exactly what it is right?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 06:18:18 GMT</pubDate>
    <dc:creator>opejoseph</dc:creator>
    <dc:date>2023-06-13T06:18:18Z</dc:date>
    <item>
      <title>How does PBI Report Server calculate usage</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3279039#M30085</link>
      <description>&lt;P&gt;SO I HAVE THIS CODE SNIPPET TO GET USAGE METRICS FOR USERS THAT VIEW DASHBOARDS MORE THAN 1 MINUTES, I DON'T TRUST THE QUERY RESULTS. But my main question is, &lt;STRONG&gt;why does the execution log table shows that users view reports in 1, 3 seconds? &lt;/STRONG&gt;Is that time not too short to even load a report, talkless filtering visualizations.&lt;STRONG&gt;Is there a better way to write this query or get usage metrics?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(the code snippet has been anonymized)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SELECT c.[name] AS dashboardName,&lt;BR /&gt;SUBSTRING(e.username, CHARINDEX('\', e.username) + 1, LEN(e.username)) AS reportUser,&lt;BR /&gt;SUM(COUNT(*)) OVER (PARTITION BY c.[name], SUBSTRING(e.username, CHARINDEX('\', e.username) + 1, LEN(e.username))) AS Views,&lt;BR /&gt;CAST(SUM(DATEDIFF(SECOND, e.TimeStart, e.TimeEnd)) AS NUMERIC(18, 0)) AS TotalSeconds,&lt;BR /&gt;CAST(AVG(DATEDIFF(SECOND, e.TimeStart, e.TimeEnd)) AS NUMERIC(18, 0)) AS AverageSeconds,&lt;BR /&gt;SUBSTRING(u.username, CHARINDEX('\', u.username) + 1, LEN(u.username)) AS dashboardBuilder&lt;BR /&gt;FROM [Server].[dbo].[Catalog] c&lt;BR /&gt;INNER JOIN [Server].[dbo].[executionlogstorage] e ON c.itemid = e.reportid&lt;BR /&gt;INNER JOIN [Server].[dbo].[users] u ON c.modifiedbyid = u.userid&lt;BR /&gt;WHERE e.TimeStart between 'XXXX-XX-XX' and 'XXXX-XX-XX'&lt;BR /&gt;AND e.UserName NOT IN ('PowerBIReportServer','T SERVICE\PowerBIReportServer')&lt;BR /&gt;AND DATEDIFF(ss, e.TimeStart, e.TimeEnd) &amp;gt;= 60&lt;BR /&gt;AND SUBSTRING(e.username, CHARINDEX('\', e.username) + 1, LEN(e.username)) != 'PowerBIReportServer'&lt;BR /&gt;GROUP BY c.[name], SUBSTRING(e.username, CHARINDEX('\', e.username) + 1, LEN(e.username)), SUBSTRING(u.username, CHARINDEX('\', u.username) + 1, LEN(u.username))&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 08:30:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3279039#M30085</guid>
      <dc:creator>opejoseph</dc:creator>
      <dc:date>2023-06-12T08:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: How does PBI Report Server calculate usage</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3280844#M30099</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="441701" data-lia-user-login="opejoseph" class="lia-mention lia-mention-user"&gt;opejoseph&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;But my main question is, &lt;STRONG&gt;why does the execution log table shows that users view reports in 1, 3 seconds? &lt;/STRONG&gt;Is that time not too short to even load a report, talkless filtering visualizations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is because the server sends the report metadata for Power BI Reports to the user's browser and the rendering then happens in the browser and the server is unaware of how long the user has the report page open after it has sent the data to the browser.&lt;BR /&gt;&lt;BR /&gt;There is no good solution for capturing the time viewing a report. You also cannot tell if the user is still looking at the report or if they have opened another browser tab...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 05:28:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3280844#M30099</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-06-13T05:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: How does PBI Report Server calculate usage</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3280950#M30101</link>
      <description>&lt;P&gt;safe to say we can only capture what the usage will be like but not exactly what it is right?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 06:18:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3280950#M30101</guid>
      <dc:creator>opejoseph</dc:creator>
      <dc:date>2023-06-13T06:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How does PBI Report Server calculate usage</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3280969#M30103</link>
      <description>&lt;P&gt;You can capture how many people access a report and how often they open it. You just cannot get how long they had it sitting on their screen.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 06:29:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/How-does-PBI-Report-Server-calculate-usage/m-p/3280969#M30103</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-06-13T06:29:20Z</dc:date>
    </item>
  </channel>
</rss>

