<?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: Copy a dataset from one workspace to another and change its source in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/4672858#M60877</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/685850"&gt;@skumar73&lt;/a&gt;&amp;nbsp;If I remember correctly it does overwrite existing DB.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Apr 2025 11:36:46 GMT</pubDate>
    <dc:creator>AntrikshSharma</dc:creator>
    <dc:date>2025-04-29T11:36:46Z</dc:date>
    <item>
      <title>Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3182394#M42148</link>
      <description>&lt;P&gt;Guys, good afternoon. I'm using powerbi embed to do some operations via code using its rest api.&lt;/P&gt;&lt;P&gt;What I want to do is use a base workspace (as if it were a template) and via code generate a copy of it with all its reports and datasets.&lt;/P&gt;&lt;P&gt;I can already create the workspace and clone the report to this new workspace, but I can't copy the data set to the new workspace. I didn't see this function either in the rest api or in the UI. I saw that through the rest api I can create the dataset by hand, but I need to inform all the tables and the type of columns in each table. I think this turns out to be unfeasible since I haven't found a way to get the metadata in the proper format to generate this new dataset.&lt;/P&gt;&lt;P&gt;Another approach I tried was via code to upload a data source via code to see if it generated a new dataset, but I couldn't get it to work.&lt;/P&gt;&lt;P&gt;Has anyone implemented something similar?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 17:30:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3182394#M42148</guid>
      <dc:creator>Snmr</dc:creator>
      <dc:date>2023-04-11T17:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3185452#M42169</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/544174"&gt;@Snmr&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you use the feature&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-datasets-copy-reports" target="_self"&gt;Copy reports from other workspaces&lt;/A&gt; to copy the report in workspace A to workspace B, workspace B only references the dataset in Workspace A. And the dataset is not copied to Workspace B. You can copy the dataset from workspace A to workspace B by following these steps if you have the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/connect-data/service-datasets-build-permissions" data-linktype="relative-path" target="_blank"&gt;build permission for the dataset&lt;/A&gt;&amp;nbsp;in workspace A:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. Get the pbix file&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/service-export-to-pbix#prerequisites" target="_self"&gt;Download a report from the Power BI service to Power BI Desktop&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Download .pbix file" style="width: 186px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/900937i2FC5223606078D2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1681365832037.png" alt="Download .pbix file" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Download .pbix file&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2. Open the pbix file in Power BI Desktop and change the data source&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://iterationinsights.com/article/change-data-source-for-existing-power-bi-report/#:~:text=Using%20File%201%20Step%201%3A%20Open%20the%20Power,choose%20%E2%80%9C%20Change%20Source%20.%E2%80%9D%20...%20More%20items" target="_blank"&gt;How to Change Data Sources for Existing Power BI Reports - Iteration Insights&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Change data source" style="width: 624px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/900939i6358321C4F18939E/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_1-1681365967615.png" alt="Change data source" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Change data source&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3. Save it after updated the data source and publish it to workspace B&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="https://www.bing.com/ck/a?!&amp;amp;&amp;amp;p=4196a0012fd190a6JmltdHM9MTY4MTI1NzYwMCZpZ3VpZD0yYTU2ZjNjZS04NzI0LTY0YzUtMGM2Ny1lMWYyODY4ODY1YWQmaW5zaWQ9NTE5Nw&amp;amp;ptn=3&amp;amp;hsh=3&amp;amp;fclid=2a56f3ce-8724-64c5-0c67-e1f2868865ad&amp;amp;psq=publish+the+report+power+bi&amp;amp;u=a1aHR0cHM6Ly9sZWFybi5taWNyb3NvZnQuY29tL2VuLXVzL3Bvd2VyLWJpL2NyZWF0ZS1yZXBvcnRzL2Rlc2t0b3AtdXBsb2FkLWRlc2t0b3AtZmlsZXM&amp;amp;ntb=1" target="_blank" rel="noopener" data-bm="84"&gt;Publish from Power BI Desktop&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you need to duplicate all of the content in workspace A to workspace, please check if the following blog can help you figure out.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/duplicate-workspaces-using-the-power-bi-rest-apis-a-step-by-step-tutorial/" target="_blank"&gt;Duplicate workspaces using the Power BI REST APIs: a step-by-step tutorial&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 06:10:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3185452#M42169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-13T06:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3186326#M42176</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/544174"&gt;@Snmr&lt;/a&gt;&amp;nbsp;I have a solution but that involves downloading dataset as JSON and then generating a database out of it with Python. Would that be feasible? You will have to re-populate the datasets, and you can bind reports using REST API later.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 13:24:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3186326#M42176</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2023-04-13T13:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3187005#M42187</link>
      <description>&lt;P&gt;Thank you for the replies. I was able to make using pipelines via api to copy and generate a new workspace&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 17:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3187005#M42187</guid>
      <dc:creator>Snmr</dc:creator>
      <dc:date>2023-04-13T17:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3187015#M42188</link>
      <description>&lt;P&gt;Share the steps/solution that you tried so it can help other.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 17:58:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3187015#M42188</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2023-04-13T17:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3468268#M44856</link>
      <description>&lt;P&gt;Can u plz share the solution!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:30:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3468268#M44856</guid>
      <dc:creator>MRIZ</dc:creator>
      <dc:date>2023-10-10T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3502520#M45154</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/515791"&gt;@MRIZ&lt;/a&gt;&amp;nbsp;&lt;A href="https://www.antmanbi.com/post/copy-move-recreate-power-bi-datasets-to-different-workspace-with-python" target="_blank"&gt;https://www.antmanbi.com/post/copy-move-recreate-power-bi-datasets-to-different-workspace-with-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Oct 2023 10:44:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3502520#M45154</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2023-10-28T10:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3536512#M45359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have done this task in different way. Instead of copying PBIX from worksapce, i uploaded PBIX file for my each client. In this way i got different Dataset for different clients. there is a small solution which works like below:&lt;BR /&gt;&lt;STRONG&gt;Problem Statement: "&lt;/STRONG&gt;I have multiple clients. They wanted to see same power bi reports but they have their own databases. I can not create every report for every client one by one and deploy reports on Power BI Service workspace. And if there is a change in one report, i have to do same changes in all the reports for all of my clients."&lt;BR /&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I have created a DB which will containt two Tables&amp;nbsp;(clientlist, clientreports) in MySQL.&lt;BR /&gt;If anynew client comes, an entry will be made in the "Clientist" table along with its Database credentials which will be use to set Datasource Connection later. ClientReports table will have the entery of the datasets created against each client. &lt;STRONG&gt;This detail will be used for Dynamic Binding for the Datasets which helps me to achieve Single Report Serving All Clients by changing report's datasource dynamically.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;I have created Powershell script which is handeling all my PowerBI tasks. this script will&lt;BR /&gt;- Read the clientlist table&lt;BR /&gt;- Create Workspace if not created for the client&lt;BR /&gt;- Read report folder which contains .PBIX files on my localsystem.&lt;BR /&gt;- Deploy reports on each workspace&lt;BR /&gt;- Set the datasoruce for each cleitn Dataset piblished.&lt;BR /&gt;- Set the dataset refresh time&lt;BR /&gt;- Update Datset connection parameters ( in my Power BI report, I have parameterize the connection 'servername' and 'databasename').&lt;BR /&gt;- Set the Datasource gredentials which is connected with a Gateway.&lt;/LI&gt;&lt;LI&gt;The whole process is for Power BI embedded reports using C# code present in this link&lt;BR /&gt;&lt;A href="https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/.NET%20Framework" target="_blank"&gt;https://github.com/microsoft/PowerBI-Developer-Samples/tree/master/.NET%20Framework&lt;/A&gt;&lt;BR /&gt;I used servicerprincipal app own data method for embedding.&lt;/LI&gt;&lt;LI&gt;I uese this link to implement Dynamic binding&amp;nbsp; &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/embedded/embed-dynamic-binding" target="_blank" rel="nofollow noopener noreferrer"&gt;Connect a Power BI report to a dataset using dynamic binding - Power BI | Microsoft Learn&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 08:03:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/3536512#M45359</guid>
      <dc:creator>MRIZ</dc:creator>
      <dc:date>2023-11-16T08:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/4671017#M60840</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/236628"&gt;@AntrikshSharma&lt;/a&gt;&amp;nbsp;, I just reviewed the article you posted,&amp;nbsp; we are working on migrating reports across workspaces using powershell script, but it keeps creating new reports everytime we run the script, wondering if the same happens to your code too. Does it recognize the existing semantic model and overwrites it instead?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 12:35:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/4671017#M60840</guid>
      <dc:creator>skumar73</dc:creator>
      <dc:date>2025-04-28T12:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/4672858#M60877</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/685850"&gt;@skumar73&lt;/a&gt;&amp;nbsp;If I remember correctly it does overwrite existing DB.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 11:36:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/4672858#M60877</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2025-04-29T11:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a dataset from one workspace to another and change its source</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/4672879#M60879</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/236628"&gt;@AntrikshSharma&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 11:51:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Copy-a-dataset-from-one-workspace-to-another-and-change-its/m-p/4672879#M60879</guid>
      <dc:creator>skumar73</dc:creator>
      <dc:date>2025-04-29T11:51:48Z</dc:date>
    </item>
  </channel>
</rss>

