<?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 moving PBIX data model to visual studio in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/moving-PBIX-data-model-to-visual-studio/m-p/3011767#M40653</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a datamodel developed in power bi desktop. In order to move it to AAS, I have to recreate the datamodel in visual studio. Is there any tutorial / article or anything about how to easily move or recreate a pbix datamodel in Visual Studio?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 16:30:18 GMT</pubDate>
    <dc:creator>bsz412</dc:creator>
    <dc:date>2023-01-10T16:30:18Z</dc:date>
    <item>
      <title>moving PBIX data model to visual studio</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/moving-PBIX-data-model-to-visual-studio/m-p/3011767#M40653</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a datamodel developed in power bi desktop. In order to move it to AAS, I have to recreate the datamodel in visual studio. Is there any tutorial / article or anything about how to easily move or recreate a pbix datamodel in Visual Studio?&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 16:30:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/moving-PBIX-data-model-to-visual-studio/m-p/3011767#M40653</guid>
      <dc:creator>bsz412</dc:creator>
      <dc:date>2023-01-10T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: moving PBIX data model to visual studio</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/moving-PBIX-data-model-to-visual-studio/m-p/3012996#M40664</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="354273" data-lia-user-login="bsz412" class="lia-mention lia-mention-user"&gt;bsz412&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, you can connect to Power BI data model in&amp;nbsp;&lt;SPAN&gt;visual studio.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Head over to Visual Studio Code and paste the following code in there. Make sure that you modify the port number of the analysis services server as it will be different in your case. In order to find out the port number, you can follow any one of the techniques mentioned in this&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.biinsight.com/four-different-ways-to-find-your-power-bi-desktop-local-port-number/" target="_blank" rel="nofollow noopener noreferrer"&gt;article&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;using System;
using Microsoft.AnalysisServices.Tabular;
 
namespace powerbi_console
{
    class Program
    {
        static void Main(string[] args)
        {
            Server tabularServer = new Server();
            tabularServer.Connect("localhost:57793");
 
            Model dataModel = tabularServer.Databases[0].Model;
 
            foreach (Table table in dataModel.Tables)
            {
                Console.WriteLine($"Table Name: {table.Name}");
            }
 
        }
    }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, you may refer to this blog:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlshack.com/working-with-power-bi-data-models-in-visual-studio-code/" target="_self"&gt;Working with Power BI Data Models in Visual Studio Code&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 06:47:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/moving-PBIX-data-model-to-visual-studio/m-p/3012996#M40664</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-11T06:47:17Z</dc:date>
    </item>
  </channel>
</rss>

