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

Unable to utilize & (and) symbol for query parameters

I have run into a fairly large issue for using Power BI for reporting. With 30+ API endpoints, without the ability to create multiple query parameters within a URL, I'm unable to use the tool for reporting. For example:

 

Creating the following source:

 

Results in the following error:

 

Is there a workaround for this? If not, this seems like a huge oversight for REST API functionality.

2 REPLIES 2
AlexChen
Employee
Employee

Hi,

 

1.  You need to set parameter for “auth” and “team”. Set both “Type” to “Text”

 

1.png

2.png

 

2. Just add your parameters as URL parts, you don’t need to add string like “auth=”, ”team=”.

 

3.png

3. After click OK, you will be able to get data from the web.

 

Best Regards

Alex

 

 

BhaveshPatel
Community Champion
Community Champion

You need to create a parameter table for passing a dynamic patrameter value to your web queries.

 

First create a function 

(team) =>

let

 Source = Web.Page(Web.Contents("https://api.acme.com/api/monitor/list?auth=[auth] & team=" & Number.ToText(Page) &" & view=releasedate&view2=domestic&yr=2013&p=.htm")),
    Data1 = Source{1}[Data],   
in
   
 
invoke function
 
Create a Parameter Table based on your team names by using the blank query. Pass on your parameter values
 
This will solve your problem if I take your requirements correctly.
 
Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

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.