cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
hana123
Frequent Visitor

Accessing HTML table Data through API using Power Query

Hi everyone. 

 

 

I have a url (HTML) not json like this one (the url down is not real) :

http://10.2.92.196:5000/abc/  

 

i should  add employee number after the / 

and it will return a table with one row of employee information 

i need to create a dashboard in power bi that allow the employee enters his number and his information table is returned to him

i do not know if this even possible in power bi ?

 

thank you .. 

 

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @hana123 ,

 

Yes, it is possible to create a dashboard in Power BI that allows an employee to enter their employee number and displays their information in a table. Here's one way you could do it:

  • In Power BI, create a new dashboard and add a text input control to the dashboard. This will allow the user to enter their employee number.
  • Add a table visualization to the dashboard. This will be used to display the employee information.
  • In the text input control, set up a measure that concatenates the URL with the employee number entered by the user. For example:
URL & "/" & EmployeeNumber
  • Use the Power BI REST API to retrieve the employee information from the URL. You can do this by creating a custom function in Power Query that uses the Web.Contents function to retrieve the data.
  • Use the custom function to retrieve the employee information and load it into the table visualization on the dashboard.
  • Set up the dashboard to refresh whenever the employee number is changed, so that the employee information is always up to date.


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-henryk-mstf Henry, please use the term report rather than dashboard. Dashboards are not interactive beyond hover and click through.

lbendlin
Super User
Super User

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn are only available for Direct Query data sources, not for Web data sources.

 

Use a PowerApps visual inside your Power BI report instead.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.