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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Daryl_K
Resolver II
Resolver II

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
Employee
Employee

Hi @Daryl_K 

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.

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

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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