{"id":1230,"date":"2022-06-20T09:21:08","date_gmt":"2022-06-20T07:21:08","guid":{"rendered":"https:\/\/www.flip-design.de\/?p=1230"},"modified":"2022-06-20T09:21:08","modified_gmt":"2022-06-20T07:21:08","slug":"migrate-ssas-tabular-models-to-power-bi-premium-by-using-the-xmla-endpoint","status":"publish","type":"post","link":"https:\/\/www.flip-design.de\/?p=1230","title":{"rendered":"Migrate SSAS Tabular Models to Power BI Premium by using the XMLA endpoint"},"content":{"rendered":"\n<p>If you are using Tabular Cubes on premises or on an Azure environment and your wat to bring the, completely to Power BI, you can use the Tabular Editor to publish your models at the service. You need to have a Premium capacity, Pro or a PPU license will not work. A little bit confusing, because you need a XMLA endpoint for the publishing, and this one is available with a PPU license, but you are not able to create new models to this endpoint by using this license type. I have created a small example of a Tabular cube and I have also deployed them to a SSAS service on Azure by using the Visual Studio.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-24.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"555\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-24.png\" alt=\"\" class=\"wp-image-1231\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-24.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-24-300x176.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-24-768x451.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>By using the Tabular Editor, I have opened the database from the service. This is the same model. The model is using one data source, a SQL database, but any other data sources are also supported.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-25.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"555\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-25.png\" alt=\"\" class=\"wp-image-1232\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-25.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-25-300x176.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-25-768x451.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>Firstly, you need to save the model (bim file) to your local computer, but if you have access to the sources, you can also use the *.bim file which is created by the Visual Studio.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-26.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"555\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-26.png\" alt=\"\" class=\"wp-image-1233\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-26.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-26-300x176.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-26-768x451.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>The export is needed, because we must modify the file and I don\u2019t want to edit my source.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-27.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"715\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-27.png\" alt=\"\" class=\"wp-image-1234\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-27.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-27-300x227.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-27-768x581.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>The next step is to \u00a0get the URL from the XMLA endpoint of the target Premium workspace.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-28.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"503\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-28.png\" alt=\"\" class=\"wp-image-1235\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-28.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-28-300x160.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-28-768x409.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>If you want to deploy the model with the Tabular Editor too the workspace, you can use the integrated assistant. Here you can paste the \u2018URL of the endpoint and authenticate your user if you are using different credentials by\u00a0 the target environment.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-29.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"668\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-29.png\" alt=\"\" class=\"wp-image-1236\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-29.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-29-300x212.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-29-768x543.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>Now you can give you target model a name \u2026<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-30.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"668\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-30.png\" alt=\"\" class=\"wp-image-1237\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-30.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-30-300x212.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-30-768x543.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>\u2026 and if you trying to deploy, you will get an error like the following.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-31.png\"><img decoding=\"async\" loading=\"lazy\" width=\"613\" height=\"343\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-31.png\" alt=\"\" class=\"wp-image-1238\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-31.png 613w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-31-300x168.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/a><\/figure>\n\n\n\n<p>I the first steps we have exported the model what was not really needed, but now we need to modify the bim \/ model file. You can open the file with any text editor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-32.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"555\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-32.png\" alt=\"\" class=\"wp-image-1239\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-32.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-32-300x176.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-32-768x451.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>We need to change compatibility level and add a key for Power BI<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    \"compatibilityLevel\": 1560,\r\n    \"defaultPowerBIDataSourceVersion\": \"powerBI_V3\",\r\n<\/code><\/pre>\n\n\n\n<p>Next, you need to re-open the file with the Tabular Editor, and you can repeat the steps for the deployment.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-33.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"668\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-33.png\" alt=\"\" class=\"wp-image-1240\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-33.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-33-300x212.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-33-768x543.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>Now, you model is ready to use at the service, but you do not get any data. The reason is simple, the model is empty, we have only deployed the metadata. So, we must configure the dataset to use the source \u00a0with our credentials and refresh them. Now, we can build new reports with the dataset.<br>The dataset is only to use, and you can edit them by using the XMLA endpoint.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-34.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"233\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-34.png\" alt=\"\" class=\"wp-image-1241\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-34.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-34-300x74.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-34-768x189.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n\n\n\n<p>But, with the Power BI Desktop or the Paginated Report Builder you can connect to the model.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-35.png\"><img decoding=\"async\" loading=\"lazy\" width=\"929\" height=\"1024\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-35-929x1024.png\" alt=\"\" class=\"wp-image-1242\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-35-929x1024.png 929w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-35-272x300.png 272w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-35-768x846.png 768w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-35.png 934w\" sizes=\"(max-width: 929px) 100vw, 929px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-36.png\"><img decoding=\"async\" loading=\"lazy\" width=\"945\" height=\"555\" src=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-36.png\" alt=\"\" class=\"wp-image-1243\" srcset=\"https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-36.png 945w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-36-300x176.png 300w, https:\/\/www.flip-design.de\/wp-content\/uploads\/2022\/06\/image-36-768x451.png 768w\" sizes=\"(max-width: 945px) 100vw, 945px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you are using Tabular Cubes on premises or on an Azure environment and your wat to bring the, completely to Power BI, you can use the Tabular Editor to publish your models at the service. You need to have &hellip; <a href=\"https:\/\/www.flip-design.de\/?p=1230\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/1230"}],"collection":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1230"}],"version-history":[{"count":1,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions"}],"predecessor-version":[{"id":1244,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=\/wp\/v2\/posts\/1230\/revisions\/1244"}],"wp:attachment":[{"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flip-design.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}