<?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: PowerBI: How to Get Machine Tab Details from PAD to PowerBi in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-How-to-Get-Machine-Tab-Details-from-PAD-to-PowerBi/m-p/4031151#M54035</link>
    <description>&lt;P&gt;Instead of using the template you can go exploring yourself what data is available in your dataverse.&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;let
    Source = CommonDataService.Database(#"Organization url", [EnableDisplayNames=false]),
    dbo_flowsession = Source{[Schema="dbo",Item="flowsession"]}[Data],
    #"Select columns" = Table.SelectColumns(dbo_flowsession,{"flowsessionid", "createdon", "statuscode", "statuscodename", "name", "completedon", "errorcode", "startedon", "regardingobjectid", "regardingobjectidname", "context", "machinegroupid", "machineid", "machineidname", "machinegroupidname", "flowmachine", "flowmachinegroup", "workflow", "owneridname"}),
    #"Duplicated Column Completedon to reportingdate" = Table.DuplicateColumn(#"Select columns", "completedon", "reportingdate"),
    #"Changed reportingdate Type" = Table.TransformColumnTypes(#"Duplicated Column Completedon to reportingdate",{{"reportingdate", type date}}),
    #"Added Run mode Column" = Table.AddColumn(#"Changed reportingdate Type", "runmode", each if Text.Contains([context], """attendedMode"":""Attended""") then "Attended" else if Text.Contains([context], """attendedMode"":""Unattended""") then "Unattended" else "Local"),
    #"Expanded flowmachinegroup" = Table.ExpandRecordColumn(#"Added Run mode Column", "flowmachinegroup", {"flowgrouptype", "flowgrouptypename"}, {"flowmachinegroup.flowgrouptype", "flowmachinegroup.flowgrouptypename"}),
    #"Added Machine group name Column" = Table.AddColumn(#"Expanded flowmachinegroup", "reportingmachinegroupname", each if [flowmachinegroup.flowgrouptype] = 545940002 then null else [machinegroupidname]),
    #"Expanded flowmachine" = Table.ExpandRecordColumn(#"Added Machine group name Column", "flowmachine", {"hostingtype"}, {"flowmachine.hostingtype"}),
    #"Added Conditional Column" = Table.AddColumn(#"Expanded flowmachine", "reportingmachinename", each if [flowmachine.hostingtype] = 1 then null else [machineidname])
in
    #"Added Conditional Column"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_0-1720476618964.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1128638iCAE83108C0B53D16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_0-1720476618964.png" alt="lbendlin_0-1720476618964.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 22:10:23 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-07-08T22:10:23Z</dc:date>
    <item>
      <title>PowerBI: How to Get Machine Tab Details from PAD to PowerBi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-How-to-Get-Machine-Tab-Details-from-PAD-to-PowerBi/m-p/4029082#M53998</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Is there a way to get this view pulled into PowerBI to check the Machine Status (disconnected/Connected/Etc)&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hsiddiq_2-1720404245019.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1128014iB732EB9F36B15940/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hsiddiq_2-1720404245019.png" alt="hsiddiq_2-1720404245019.png" /&gt;&lt;/span&gt;&lt;P&gt;&lt;BR /&gt;I've read and downloaded the the PowerBI template from here&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-automate/desktop-flows/desktop-flow-activity" target="_blank" rel="noopener nofollow noreferrer"&gt;https://learn.microsoft.com/en-us/power-automate/desktop-flows/desktop-flow-activity&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Under the limitation section it does say:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some data aren't available in the Power BI desktop template: current runs, machine statuses, top failed cloud flows, and the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;see more&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;option&lt;BR /&gt;&lt;BR /&gt;Does anyone have any suggestion on the Machine Tab in Power Automate can be replicated to PowerBI?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Appreciate the help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jul 2024 02:05:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-How-to-Get-Machine-Tab-Details-from-PAD-to-PowerBi/m-p/4029082#M53998</guid>
      <dc:creator>hsiddiq</dc:creator>
      <dc:date>2024-07-08T02:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI: How to Get Machine Tab Details from PAD to PowerBi</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBI-How-to-Get-Machine-Tab-Details-from-PAD-to-PowerBi/m-p/4031151#M54035</link>
      <description>&lt;P&gt;Instead of using the template you can go exploring yourself what data is available in your dataverse.&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;let
    Source = CommonDataService.Database(#"Organization url", [EnableDisplayNames=false]),
    dbo_flowsession = Source{[Schema="dbo",Item="flowsession"]}[Data],
    #"Select columns" = Table.SelectColumns(dbo_flowsession,{"flowsessionid", "createdon", "statuscode", "statuscodename", "name", "completedon", "errorcode", "startedon", "regardingobjectid", "regardingobjectidname", "context", "machinegroupid", "machineid", "machineidname", "machinegroupidname", "flowmachine", "flowmachinegroup", "workflow", "owneridname"}),
    #"Duplicated Column Completedon to reportingdate" = Table.DuplicateColumn(#"Select columns", "completedon", "reportingdate"),
    #"Changed reportingdate Type" = Table.TransformColumnTypes(#"Duplicated Column Completedon to reportingdate",{{"reportingdate", type date}}),
    #"Added Run mode Column" = Table.AddColumn(#"Changed reportingdate Type", "runmode", each if Text.Contains([context], """attendedMode"":""Attended""") then "Attended" else if Text.Contains([context], """attendedMode"":""Unattended""") then "Unattended" else "Local"),
    #"Expanded flowmachinegroup" = Table.ExpandRecordColumn(#"Added Run mode Column", "flowmachinegroup", {"flowgrouptype", "flowgrouptypename"}, {"flowmachinegroup.flowgrouptype", "flowmachinegroup.flowgrouptypename"}),
    #"Added Machine group name Column" = Table.AddColumn(#"Expanded flowmachinegroup", "reportingmachinegroupname", each if [flowmachinegroup.flowgrouptype] = 545940002 then null else [machinegroupidname]),
    #"Expanded flowmachine" = Table.ExpandRecordColumn(#"Added Machine group name Column", "flowmachine", {"hostingtype"}, {"flowmachine.hostingtype"}),
    #"Added Conditional Column" = Table.AddColumn(#"Expanded flowmachine", "reportingmachinename", each if [flowmachine.hostingtype] = 1 then null else [machineidname])
in
    #"Added Conditional Column"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lbendlin_0-1720476618964.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1128638iCAE83108C0B53D16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lbendlin_0-1720476618964.png" alt="lbendlin_0-1720476618964.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 22:10:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBI-How-to-Get-Machine-Tab-Details-from-PAD-to-PowerBi/m-p/4031151#M54035</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-07-08T22:10:23Z</dc:date>
    </item>
  </channel>
</rss>

