{"id":23085,"date":"2023-02-28T18:42:30","date_gmt":"2023-02-28T17:42:30","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=23085"},"modified":"2023-02-28T18:42:30","modified_gmt":"2023-02-28T17:42:30","slug":"programmatically-change-the-data-source-of-a-power-bi-report","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/","title":{"rendered":"Programmatically change the data source of a Power BI Report"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Executive Summary<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, I want to demonstrate how to programmatically change the data source of a Power BI report. This can be useful when you develop and test the report then want to publish the report in Test, QA and Production using different data sources.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisite<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install PowerShell library ReportingServicesTools from the <a href=\"https:\/\/github.com\/microsoft\/ReportingServicesTools\">git<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: The Power BI report<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is important to define the data source in your original Power BI Report as a parameter. The step for that can be read under <a href=\"https:\/\/learn.microsoft.com\/en-gb\/power-bi\/report-server\/connect-data-source-apis\">Link<\/a>. Find here some screenshots I took during my test.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"876\" height=\"559\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png\" alt=\"\" class=\"wp-image-23086\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png 876w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11-300x191.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11-768x490.png 768w\" sizes=\"auto, (max-width: 876px) 100vw, 876px\" \/><figcaption class=\"wp-element-caption\">Screenshot 1: Open Power Query Editor<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"616\" height=\"392\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-12.png\" alt=\"\" class=\"wp-image-23087\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-12.png 616w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-12-300x191.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><figcaption class=\"wp-element-caption\">Screenshot 2: Open Manage Parameters<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"560\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-13.png\" alt=\"\" class=\"wp-image-23088\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-13.png 863w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-13-300x195.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-13-768x498.png 768w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><figcaption class=\"wp-element-caption\">Screenshot 3: Edit Data Source Parameters<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: change the Data Source<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After designing the report, you can deploy it and you will be able to change the data source with the script in listing 1. It is important to notice that, I use the <em><strong>report url<\/strong><\/em> and not the <strong><em>web services url<\/em><\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"356\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-14.png\" alt=\"\" class=\"wp-image-23089\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-14.png 940w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-14-300x114.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-14-768x291.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><figcaption class=\"wp-element-caption\">Screenshot 4: Use Report URL<\/figcaption><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; notranslate\">\n#--Listing 1\n\n#.pbix\n\n## start the PowerShell in the context of a user who have the necessary permission on the report server\n##\n##https:\/\/learn.microsoft.com\/de-de\/power-bi\/report-server\/connect-data-source-apis\n##https:\/\/learn.microsoft.com\/de-de\/power-bi\/report-server\/connect-data-source-apis-pre-oct-2020\n\n## Install the Module\n#Install-Module -Name ReportingServicesTools\n\n## Check\n#Get-Module -ListAvailable -Name ReportingServicesTools\n\n## Import the Module\nImport-Module ReportingServicesTools\n\n\n$reportPortalUri = &quot;http:\/\/nts_reportserver\/reports&quot;\n$ntsContent = Get-RsRestFolderContent &#039;\/ntsfolder&#039;  -ReportPortalUri $reportPortalUri  | Where-Object {$_.Name -eq &#039;nts_report&#039;}\n\n$ntsRsRestItemDataModelParameters = Get-RsRestItemDataModelParameters -RsItem \n &#039;\/ntsfolder\/nts_report&#039; -ReportPortalUri $reportPortalUri  \n\n$parameterdictionary = @{}\nforeach ($parameter in $ntsRsRestItemDataModelParameters) { $parameterdictionary.Add($parameter.Name, $parameter); }\n\n### Set the Parameter\n$parameterdictionary&#x5B;\u201cServerName\u201d].Value = &#039;NTS_DATABASESERVER\\INST01&#039;\n$parameterdictionary&#x5B;\u201cDatabasename\u201d].Value = &#039;NTS_TestDB&#039;\n\n### Update the report\nSet-RsRestItemDataModelParameters -RsItem &#039;\/ntsfolder\/nts_report&#039; -DataModelParameters $ntsRsRestItemDataModelParameters\n\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Conclusion<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The post uses the PowerShell library ReportingServicesTools to change the data source of a Power BI Report. The data source must be previously define in the .pbix-file as parameter. Of course, this library has more features that you can use to remotely manage your Power BI Reports. Note the use of the command parameter \u201c-RsItem\u201d and the &#8220;reportserver url&#8221; in the script.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">#beSharing<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Executive Summary In this post, I want to demonstrate how to programmatically change the data source of a Power BI report. This can be useful when you develop and test the report then want to publish the report in Test, QA and Production using different data sources. Prerequisite Step 1: The Power BI report It&hellip;&nbsp;<\/p>\n","protected":false},"author":26,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[294,4133,99],"tags":[1496],"class_list":["post-23085","post","type-post","status-publish","format-standard","category-business-intelligence","category-database","category-sql-server","tag-power-bi-report-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Programmatically change the data source of a Power BI Report - dbi services Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Programmatically change the data source of a Power BI Report\" \/>\n<meta property=\"og:description\" content=\"Executive Summary In this post, I want to demonstrate how to programmatically change the data source of a Power BI report. This can be useful when you develop and test the report then want to publish the report in Test, QA and Production using different data sources. Prerequisite Step 1: The Power BI report It&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-28T17:42:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png\" \/>\n\t<meta property=\"og:image:width\" content=\"876\" \/>\n\t<meta property=\"og:image:height\" content=\"559\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Microsoft Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Microsoft Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/\"},\"author\":{\"name\":\"Microsoft Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/857c83b2f1d7d3e7c113ed40edf63294\"},\"headline\":\"Programmatically change the data source of a Power BI Report\",\"datePublished\":\"2023-02-28T17:42:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/\"},\"wordCount\":232,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-11.png\",\"keywords\":[\"Power BI Report Server\"],\"articleSection\":[\"Business Intelligence\",\"Database\",\"SQL Server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/\",\"name\":\"Programmatically change the data source of a Power BI Report - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-11.png\",\"datePublished\":\"2023-02-28T17:42:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-11.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/image-11.png\",\"width\":876,\"height\":559},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/programmatically-change-the-data-source-of-a-power-bi-report\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Programmatically change the data source of a Power BI Report\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/857c83b2f1d7d3e7c113ed40edf63294\",\"name\":\"Microsoft Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/microsoft-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/microsoft-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/microsoft-square.png\",\"caption\":\"Microsoft Team\"},\"description\":\"Posts published under the Microsoft Team account are collective contributions by the dbi services Microsoft consultants. The practice covers SQL Server across its lifecycle, from installation, migration, and security to high availability with Always On and performance tuning, together with Azure data services and the Microsoft Business Intelligence stack, including Power BI. The team holds Microsoft certifications up to Expert level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/microsoft-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Programmatically change the data source of a Power BI Report - dbi services Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/","og_locale":"en_US","og_type":"article","og_title":"Programmatically change the data source of a Power BI Report","og_description":"Executive Summary In this post, I want to demonstrate how to programmatically change the data source of a Power BI report. This can be useful when you develop and test the report then want to publish the report in Test, QA and Production using different data sources. Prerequisite Step 1: The Power BI report It&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2023-02-28T17:42:30+00:00","og_image":[{"width":876,"height":559,"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png","type":"image\/png"}],"author":"Microsoft Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Microsoft Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/"},"author":{"name":"Microsoft Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/857c83b2f1d7d3e7c113ed40edf63294"},"headline":"Programmatically change the data source of a Power BI Report","datePublished":"2023-02-28T17:42:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/"},"wordCount":232,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png","keywords":["Power BI Report Server"],"articleSection":["Business Intelligence","Database","SQL Server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/","url":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/","name":"Programmatically change the data source of a Power BI Report - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png","datePublished":"2023-02-28T17:42:30+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2023\/02\/image-11.png","width":876,"height":559},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/programmatically-change-the-data-source-of-a-power-bi-report\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Programmatically change the data source of a Power BI Report"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/857c83b2f1d7d3e7c113ed40edf63294","name":"Microsoft Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/microsoft-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/microsoft-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/microsoft-square.png","caption":"Microsoft Team"},"description":"Posts published under the Microsoft Team account are collective contributions by the dbi services Microsoft consultants. The practice covers SQL Server across its lifecycle, from installation, migration, and security to high availability with Always On and performance tuning, together with Azure data services and the Microsoft Business Intelligence stack, including Power BI. The team holds Microsoft certifications up to Expert level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/microsoft-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/23085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=23085"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/23085\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=23085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=23085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=23085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}