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
lonzu
New Member

PowerBi datasources wth parameters

Hi All,

 

I'm trying to inner Join two tables with a third table. The datasource is a Rest API from Smart recruiters.

 

https://dev.smartrecruiters.com/customer-api/live-docs/customer-api-2/#!/analytics/analytics_applica...

 

The tables Rest API datasources are

 

http://api.smartrecruiter.com/analytics/applications (datasource 1)
http://api.smartrecruiter.com/analytics/jobs (datasource 2)

http://api.smartrecruiter.com/candidates/{id}/jobs/{jobId}/properties (datasource 3)

 

datasource  3 needs parameters in the url source.  Can a query link the tables and pass the required parameters to datasource 3?


Thanks in advance.


Matt

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@lonzu

You can create two parameters using "Manage parameters" feature in Query Editor of Power BI, called id and jobId, to list the required values, then change the URL in Advanced Editor of your query to the following:

Web.Contents("http://api.smartrecruiter.com/candidates/" & #"id" & "/jobs/" & #"jobId" & "/properties")

There is also a similar thread for your reference.
http://community.powerbi.com/t5/Desktop/Variable-in-URL/td-p/141714


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yuezhe-msft
Employee
Employee

@lonzu

You can create two parameters using "Manage parameters" feature in Query Editor of Power BI, called id and jobId, to list the required values, then change the URL in Advanced Editor of your query to the following:

Web.Contents("http://api.smartrecruiter.com/candidates/" & #"id" & "/jobs/" & #"jobId" & "/properties")

There is also a similar thread for your reference.
http://community.powerbi.com/t5/Desktop/Variable-in-URL/td-p/141714


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.