<?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: Service statistic on Page usage in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4029363#M54002</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you think my answer provided some kind of a soulition, please consider accepting it as soulition and click the button. I also&amp;nbsp;greatly appreciate if you give me a kudos &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 05:45:42 GMT</pubDate>
    <dc:creator>mariussve1</dc:creator>
    <dc:date>2024-07-08T05:45:42Z</dc:date>
    <item>
      <title>Service statistic on Page usage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4024520#M53907</link>
      <description>&lt;P&gt;Dear colleagues,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My objective here is to build a report and semantic model that goes behind the classic "power bi usage reports".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of know, we are using the following Activity Log (&lt;A href="https://learn.microsoft.com/fr-fr/power-bi/guidance/admin-activity-log#example-1-authenticate-with-the-power-bi-service" target="_blank"&gt;https://learn.microsoft.com/fr-fr/power-bi/guidance/admin-activity-log#example-1-authenticate-with-the-power-bi-service&lt;/A&gt;), but there is no detail of the Report page people view.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to go below, and add the details of the page the report is looking at.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for you help !&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 08:00:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4024520#M53907</guid>
      <dc:creator>Olivierln</dc:creator>
      <dc:date>2024-07-04T08:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Service statistic on Page usage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4025807#M53933</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have started on this project myself, and its not strait forward, but doable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First you need to do is enable logging to Log analytics:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/log-analytics/desktop-log-analytics-overview" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/transform-model/log-analytics/desktop-log-analytics-overview&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Log analytics fetch the visual id. To map this the correct page you need to use an api to Get report definition:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/fabric/articles/item-management/definitions/report-definition" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/fabric/articles/item-management/definitions/report-definition&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Im using notebook and a Python script to convert the respons:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;"payload"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"base64 encoded string&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I save this json respons to a file on onelake and Then use a new pythoncript to scan and Get all the visual id and wich page it belongs to.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then at last I load the kql query from log analytics with the relevant info and map it to the Python extraction in power bi and create a report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said, not Strait forward but doable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Marius &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 23:55:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4025807#M53933</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-07-04T23:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Service statistic on Page usage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4026775#M53953</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;Thanks for you feedback.&amp;nbsp;&lt;BR /&gt;but here it seems like we are discussing the Metadata not the activity log (xxxx@gmail.com views the page xxx of the report yyy), isn 'it ?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 09:27:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4026775#M53953</guid>
      <dc:creator>Olivierln</dc:creator>
      <dc:date>2024-07-05T09:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Service statistic on Page usage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4026799#M53955</link>
      <description>&lt;P&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;When you turn on logging to Log analytics workspace in Power BI it will log almost everything.&lt;BR /&gt;&lt;BR /&gt;You can customize the extract, so it returns exactly what you want. In my project I use this KQL:&lt;BR /&gt;&lt;BR /&gt;PowerBIDatasetsWorkspace&lt;BR /&gt;| where TimeGenerated &amp;gt;= startofday(ago(1d)) and TimeGenerated &amp;lt; startofday(ago(0d))&lt;BR /&gt;| extend ParsedContext = parse_json(ApplicationContext)&lt;BR /&gt;| extend DatasetId = tostring(ParsedContext.DatasetId)&lt;BR /&gt;| where isnotempty(DatasetId)&lt;BR /&gt;| extend ReportId = tostring(ParsedContext.Sources[0].ReportId)&lt;BR /&gt;| extend VisualId = tostring(ParsedContext.Sources[0].VisualId)&lt;BR /&gt;| extend UserSession = tostring(ParsedContext.Sources[0].HostProperties.UserSession)&lt;BR /&gt;| where isnotempty(UserSession)&lt;BR /&gt;| extend DateTime = bin(TimeGenerated, 1m)&lt;BR /&gt;| extend Date = format_datetime(TimeGenerated, 'yyyy-MM-dd')&lt;BR /&gt;| summarize Sessions = dcount(UserSession) by&lt;BR /&gt;Date,&lt;BR /&gt;DateTime,&lt;BR /&gt;PowerBIWorkspaceId,&lt;BR /&gt;PowerBIWorkspaceName,&lt;BR /&gt;DatasetId,&lt;BR /&gt;ReportId,&lt;BR /&gt;VisualId,&lt;BR /&gt;ExecutingUser,&lt;BR /&gt;UserSession&lt;BR /&gt;&lt;BR /&gt;Then you can connect this to the ActivityEvent API if you like. The KQL returns:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariussve1_0-1720172359188.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1127360i43F7BEC1B8CB4AD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariussve1_0-1720172359188.png" alt="mariussve1_0-1720172359188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As you can see, this returns one row for each sessionid pr visual id that the end user have visited &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; This is just what you want.&lt;BR /&gt;&lt;BR /&gt;Br&lt;BR /&gt;Marius&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 09:40:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4026799#M53955</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-07-05T09:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Service statistic on Page usage</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4029363#M54002</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you think my answer provided some kind of a soulition, please consider accepting it as soulition and click the button. I also&amp;nbsp;greatly appreciate if you give me a kudos &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 05:45:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-statistic-on-Page-usage/m-p/4029363#M54002</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-07-08T05:45:42Z</dc:date>
    </item>
  </channel>
</rss>

