<?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: Live Stream Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933765#M40012</link>
    <description>&lt;P&gt;thanks Ibendlin&amp;nbsp;&lt;BR /&gt;so i should convert my sql code which is (Select * from My table) to Json and Run the result inside the windows powershell ISE.&lt;BR /&gt;i will search a tool to convert it to json.&amp;nbsp;&lt;BR /&gt;thanks a lot&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 19:22:19 GMT</pubDate>
    <dc:creator>AliSafa</dc:creator>
    <dc:date>2022-11-28T19:22:19Z</dc:date>
    <item>
      <title>Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2930129#M39974</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it possible to create a Live Streaming Dataset reading Data from a SQL table?&amp;nbsp;&lt;BR /&gt;I could not find any source which explains it well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to run a PowerShell code to force it to use an SQL server. but the problem is the power shell code does not&amp;nbsp; execute and it gives a bunch of errors complaining KeyBlocker:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException&lt;BR /&gt;+ FullyQualifiedErrorId: WebCmdletWebResponseException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand&lt;BR /&gt;Invoke-RestMethod: {"error":{"message": "The request was blocked by KeyBlocker "}}&lt;BR /&gt;At line:57 char:1&lt;BR /&gt;+ Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Jason ...&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 18:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2930129#M39974</guid>
      <dc:creator>AliSafa</dc:creator>
      <dc:date>2022-11-25T18:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2930700#M39976</link>
      <description>&lt;P&gt;You can certainly do that - run a query against the SQL table and push the result into the streaming dataset.&amp;nbsp; It sounds a little weird though - how real time is your SQL data source?&lt;/P&gt;</description>
      <pubDate>Sat, 26 Nov 2022 16:49:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2930700#M39976</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-11-26T16:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933542#M40004</link>
      <description>&lt;P&gt;its each 15 minutes. you said&amp;nbsp;&lt;SPAN&gt;run a query against the SQL table and push the result into the streaming dataset.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the question is how to push the rsult to streaming Dataset?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 16:39:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933542#M40004</guid>
      <dc:creator>AliSafa</dc:creator>
      <dc:date>2022-11-28T16:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933627#M40008</link>
      <description>&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-real-time-streaming" target="_blank"&gt;Real-time streaming in Power BI - Power BI | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Here is an example using Powershell&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#capture stats
$date = (Get-Date).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:00.000Z')
$mem = (Get-Counter '\Memory\Available MBytes').CounterSamples.CookedValue
$proc = (Get-Counter '\Processor(_Total)\% Processor Time').CounterSamples.CookedValue
$disk = (Get-Counter '\LogicalDisk(C:)\% free space').CounterSamples.CookedValue
$mashups = 0+(get-process "Microsoft.Mashup.Container.NetFX45" | Measure-Object ).Count
$mashmem = 0+(get-process "Microsoft.Mashup.Container.NetFX45" | Measure-Object WS -Sum ).Sum
$gwmem = 0+(get-process "Microsoft.PowerBI.EnterpriseGateway" | Measure-Object WS -Sum ).Sum
#enforce TLS1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$payload = @{
"Host" = $env:computername
"Timestamp" = $date
"Available Memory in MB" = $mem
"Processor Load %" = $proc
"% Free on C:" = $disk
"Mashups" = $mashups
"Mashup Memory" = $mashmem
"Gateway Memory" = $gwmem
}
#push URL
$endpoint = "https://api.powerbi.com/beta/&amp;lt;tenant ID&amp;gt;/datasets/&amp;lt;dataset id&amp;gt;/rows?key=&amp;lt;API key&amp;gt;"
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 17:39:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933627#M40008</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-11-28T17:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933734#M40010</link>
      <description>&lt;P&gt;thank you for your answer&amp;nbsp;&lt;BR /&gt;it seems that this code is reading data from memory and Processor etc and push it into the streamin dataset.&amp;nbsp;&lt;BR /&gt;but i need to read data from a sql table and push it to a Streaming dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 18:59:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933734#M40010</guid>
      <dc:creator>AliSafa</dc:creator>
      <dc:date>2022-11-28T18:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933748#M40011</link>
      <description>&lt;P&gt;Yes, it was an example. Run your SQL query, convert the result to JSON, then use that as the payload.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 19:07:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933748#M40011</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-11-28T19:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933765#M40012</link>
      <description>&lt;P&gt;thanks Ibendlin&amp;nbsp;&lt;BR /&gt;so i should convert my sql code which is (Select * from My table) to Json and Run the result inside the windows powershell ISE.&lt;BR /&gt;i will search a tool to convert it to json.&amp;nbsp;&lt;BR /&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 19:22:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933765#M40012</guid>
      <dc:creator>AliSafa</dc:creator>
      <dc:date>2022-11-28T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Live Stream Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933805#M40013</link>
      <description>&lt;P&gt;One thing to keep in mind:&amp;nbsp; One of the fields in your table should probably be a timestamp, and it should be in UTC and in ISO8601 format.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 19:43:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-Stream-Power-BI/m-p/2933805#M40013</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2022-11-28T19:43:39Z</dc:date>
    </item>
  </channel>
</rss>

