Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I like PowerBI but have some issues. How to set Query in the start like an XML file inside the URL as Query?
Solved! Go to Solution.
Hi @toplisek - You cannot pass a full XML or DAX/M Query string in the URL and have Power BI execute it., You can add query parameters to the report URL to filter visuals on load.
suppose, if you are store XML in a data source (Excel, SQL, Blob, SharePoint)Load and parse it in Power Query (Power BI supports parsing XML). Use the parsed data to control logic
reflinks:
https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters
https://community.fabric.microsoft.com/t5/Desktop/URL-filtering-in-report-not-working/td-p/3173913
Hope this helps.
Proud to be a Super User! | |
Hi @toplisek ,
Power BI, if you want to load data from a URL that returns XML (e.g., an API that serves XML responses), you can use the Web connector and then parse the XML using Power Query. Unfortunately, Power BI doesn't allow embedding XML data directly in the query URL as part of a payload in a traditional REST POST call — it primarily supports GET requests via the Web connector.
However, here's how you can load XML data from a URL at the start:
Open Power BI Desktop and go to Home > Get Data > Web.
In the URL field, paste the link to the XML file or endpoint (e.g., https://example.com/data.xml?param=value).
Click OK, and Power BI will load the XML data structure.
Power Query Editor will open where you can navigate the XML hierarchy, expand nodes, and transform the data as needed.
Once you're done shaping your data, click Close & Apply.
If your XML needs to be passed in the body of a POST request (instead of via URL), Power BI does support this using Advanced Options in the Web connector — there, you can switch the HTTP method to POST and paste the XML payload manually.
Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.
Connect with me on LinkedIn: Rohit Kumar.
Hi @toplisek,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @toplisek,
May I ask if you have resolved this issue? If so, please mark it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @toplisek ,
Power BI, if you want to load data from a URL that returns XML (e.g., an API that serves XML responses), you can use the Web connector and then parse the XML using Power Query. Unfortunately, Power BI doesn't allow embedding XML data directly in the query URL as part of a payload in a traditional REST POST call — it primarily supports GET requests via the Web connector.
However, here's how you can load XML data from a URL at the start:
Open Power BI Desktop and go to Home > Get Data > Web.
In the URL field, paste the link to the XML file or endpoint (e.g., https://example.com/data.xml?param=value).
Click OK, and Power BI will load the XML data structure.
Power Query Editor will open where you can navigate the XML hierarchy, expand nodes, and transform the data as needed.
Once you're done shaping your data, click Close & Apply.
If your XML needs to be passed in the body of a POST request (instead of via URL), Power BI does support this using Advanced Options in the Web connector — there, you can switch the HTTP method to POST and paste the XML payload manually.
Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.
Connect with me on LinkedIn: Rohit Kumar.
Hi @toplisek,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @rajendraongole1 for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solution? If so, please mark it as the solution. This will help other community members solve similar problems faster.
Thank you.
Hi @toplisek - You cannot pass a full XML or DAX/M Query string in the URL and have Power BI execute it., You can add query parameters to the report URL to filter visuals on load.
suppose, if you are store XML in a data source (Excel, SQL, Blob, SharePoint)Load and parse it in Power Query (Power BI supports parsing XML). Use the parsed data to control logic
reflinks:
https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters
https://community.fabric.microsoft.com/t5/Desktop/URL-filtering-in-report-not-working/td-p/3173913
Hope this helps.
Proud to be a Super User! | |
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
56 | |
38 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |