Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Using an html query in Power BI Desktop?

Someone sent me an html query that they indicated was used to extract info from a SharePoint site into Power BI. It starts like:

 

let
    Source = TicketTrackingSystemCurrent,
    #"Reordered Columns" = Table.ReorderColumns(Source,
{"Id", 
"BusinessUnitValue", 
"SalesOrderNumber", 

 

And continue for a few hundred lines.

 

I'm still a PBI "noob" and though I've done many queries have no idea how to enter this into a Desktop query. I've doe a lot of Googling to no avail.

 

Can this be entered into a query? If so, whee and how?

1 ACCEPTED SOLUTION

Your screenshot looks like it's from the query editor/advanced editor.

 

Click Edit Queries

Then either

Click Advanced Editor and put your code there

Create a blank query and then Click Advanced Editor

 

Query Edit.PNG

View solution in original post

4 REPLIES 4
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous 

It seems you may have a look at below post.It shows how to get the data from SharePoint in Power BI

https://community.powerbi.com/t5/Service/Power-BI-Get-Data-From-SharePoint-List-Library/td-p/280109

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Um, thanks but the answer bears no relation to my question. Making OData and other connections to SharePoint is easy, but I received an advanced query written in html from someone that pulls data from different locations and combines it. I am trying to figure out how this is used or imported into PBI.

Your screenshot looks like it's from the query editor/advanced editor.

 

Click Edit Queries

Then either

Click Advanced Editor and put your code there

Create a blank query and then Click Advanced Editor

 

Query Edit.PNG

Anonymous
Not applicable

Yes, you are correct. Shortly after my last reply I figured out how to enter it using the Advanced Editor (as you show).

 

Unfortunately the query I was sent is riddled with errors so it's not working, but that's nothing that this group can help with. 🙂

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.