<?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: Delete data from PowerBI Desktop Model in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3189459#M42212</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have you considered going down the thin report/connected dataset approach?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You then work on a json bim file (or soon TMDL) and deploy it to an XLMA end point. This is simply a definition of the model and contains no data. Plays really nicely with source control.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your report pbix files then connect to the dataset in the service and so also don't contain data themselves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other option is to save as pbit which is exactly what you're looking for in that it is the report, the data model but no actual data.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Apr 2023 07:31:37 GMT</pubDate>
    <dc:creator>bcdobbs</dc:creator>
    <dc:date>2023-04-15T07:31:37Z</dc:date>
    <item>
      <title>Delete data from PowerBI Desktop Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3188301#M42197</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are currently working on developing a tool that deletes data from PowerBI Desktop before the business users save it to TFS.&lt;/P&gt;&lt;P&gt;However, we have encountered two issues that we are struggling to resolve and we were hoping you could provide us with some assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our tool has been developed with the following prerequisites:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;PowerBI Desktop (for Power BI Report Server)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jklkj_0-1681467747301.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/901759i08AD2F7C411A3CC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jklkj_0-1681467747301.png" alt="jklkj_0-1681467747301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Windows Server 2019 Standard&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jklkj_1-1681462747920.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/901699i9C052CA3C94D207D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jklkj_1-1681462747920.png" alt="jklkj_1-1681462747920.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Windows PowerShell ISE (as administrator)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;Issue 1&lt;/H1&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our first issue is related to data deletion. We initially approached this by connecting to the Analysis Services workspace created by PowerBI Desktop,&lt;BR /&gt;finding the appropriate port, and then using PowerShell to connect to it and delete the data using the "Invoke-ProcessTable" function.&lt;BR /&gt;This method worked without any problems until we started using PowerQuery Groups.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;H2&gt;What is the task:&lt;/H2&gt;&lt;P&gt;The task is to be able to delete data from a PBIX file by Powershell, even when PowerQuery groups are used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Working Solution:&lt;/H2&gt;&lt;P&gt;We use PowerShell to open the PBIX file and find the port to the Analysis Services workspace that is created in the background.&lt;BR /&gt;As the server name, we use localhost:&amp;lt;port&amp;gt;. We have an iteration which deletes all tables in a database. We delete the data using the "Invoke-ProcessTable" function.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jklkj_2-1681462747921.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/901700iDA79EFAC20E2A0ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jklkj_2-1681462747921.png" alt="jklkj_2-1681462747921.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Not Working Solution:&lt;/H2&gt;&lt;P&gt;This was the working solution to delete data from the Power BI model, but we encountered a problem when we started using PowerQuery groups.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Error Message:&lt;/H3&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jklkj_8-1681467850403.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/901770iD1E605A807AD5952/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jklkj_8-1681467850403.png" alt="jklkj_8-1681467850403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2&gt;Question:&lt;/H2&gt;&lt;P&gt;How can we delete data while also utilizing PowerQuery groups?&lt;/P&gt;&lt;H1&gt;Issue 2&lt;/H1&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our goal is to ensure that once the data is deleted, it remains deleted even after saving and closing the PBIX file.&lt;BR /&gt;Currently, however, we've encountered an issue where the deleted data reappears when we reopen the file.&lt;BR /&gt;As such, we're looking for a solution that will allow us to permanently remove the data from the file, so that it does not return upon reopening.&lt;/P&gt;&lt;H2&gt;What is the task:&lt;/H2&gt;&lt;P&gt;Our goal is to have a PBIX file without any data permanently, once the data has been successfully deleted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H2&gt;Not Working Solution:&lt;/H2&gt;&lt;P&gt;Our initial approach for addressing the issue of data persistence was to simply save and close the PBIX file after deleting the data using PowerShell.&lt;BR /&gt;However, this solution did not prove to be effective in achieving our goal of permanently removing the data from the file.&lt;/P&gt;&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;&lt;H2&gt;Question:&lt;/H2&gt;&lt;P&gt;How can we ensure that the deleted data is not restored when we save and close the PBIX file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 10:28:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3188301#M42197</guid>
      <dc:creator>jklkj</dc:creator>
      <dc:date>2023-04-14T10:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Delete data from PowerBI Desktop Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3189459#M42212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Have you considered going down the thin report/connected dataset approach?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You then work on a json bim file (or soon TMDL) and deploy it to an XLMA end point. This is simply a definition of the model and contains no data. Plays really nicely with source control.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your report pbix files then connect to the dataset in the service and so also don't contain data themselves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other option is to save as pbit which is exactly what you're looking for in that it is the report, the data model but no actual data.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 07:31:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3189459#M42212</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2023-04-15T07:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Delete data from PowerBI Desktop Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3191012#M42226</link>
      <description>&lt;P&gt;Hi Ben,&lt;BR /&gt;thank you for you reply.&lt;BR /&gt;&lt;BR /&gt;Can I use XMLA endpoint for PowerBI Report Server (on-premise PowerBI)?&lt;BR /&gt;Is there any way how to automically (e.g. using PowerShell) update PBIT back to PBIX file?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 08:48:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3191012#M42226</guid>
      <dc:creator>jklkj</dc:creator>
      <dc:date>2023-04-17T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delete data from PowerBI Desktop Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3192150#M42240</link>
      <description>&lt;P&gt;XLMA is just the protocol used by the analysis service engine that sits under Power BI so I'd be very surprised if you couldn't connect that way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to PBIT to PBIX I don't think there is a native way (&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=e41d996b-1fc4-463a-b8ab-bdedb73728d3" target="_blank"&gt;https://ideas.powerbi.com/ideas/idea/?ideaid=e41d996b-1fc4-463a-b8ab-bdedb73728d3&lt;/A&gt;). Not done it but you might be able to do it using pbi tools&amp;nbsp;&lt;A href="https://pbi.tools/cli/usage.html" target="_blank"&gt;https://pbi.tools/cli/usage.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 19:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3192150#M42240</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2023-04-17T19:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete data from PowerBI Desktop Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3197169#M42303</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have considered your response, and I am still unsure of how to deploy a BIM file to the Power BI Report Server in an on-premise environment without internet access. Everywhere I have researched, it only discusses the Power BI Service, which is not utilized nor permitted by the company I work for. Therefore, I did not consider this option from the outset. Could you please provide me with a link where I can find more information, ideally a procedure for automatically deploying a BIM file to PBIRS? Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 05:15:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3197169#M42303</guid>
      <dc:creator>jklkj</dc:creator>
      <dc:date>2023-04-20T05:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delete data from PowerBI Desktop Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3197372#M42306</link>
      <description>&lt;P&gt;Have to admit I can't see any documentation on this. I may well be wrong. I'll install report server my end and have a go.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 07:35:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3197372#M42306</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2023-04-20T07:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Delete data from PowerBI Desktop Model</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3197619#M42311</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/545984"&gt;@jklkj&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Appears to be a lot more locked down that I thought it would be!&lt;BR /&gt;&lt;BR /&gt;I think though if you run tabular editor on the server it's hosted on and try to connect to ServerName:5132 (See&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Report-Server/Is-SSAS-service-included-in-Power-BI-Report-Server-on-premise/m-p/754288" target="_blank"&gt;Solved: Is SSAS service included in Power BI Report Server... - Microsoft Power BI Community&lt;/A&gt;) it might work for you. I seem to be able to connect to that via SSMS (Set to Analysis Services)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 09:38:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Delete-data-from-PowerBI-Desktop-Model/m-p/3197619#M42311</guid>
      <dc:creator>bcdobbs</dc:creator>
      <dc:date>2023-04-20T09:38:21Z</dc:date>
    </item>
  </channel>
</rss>

