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.
I am trying to make a call to an API with variables "offset" and "limit". However, I think I am running into issues with my syntax. See the picture below:
My problems seems to stem from the bolded/underline text:
Source = Csv.Document(Web.Contents("https://ClinicalTrials.gov/api/query/study_fields?&fields=NCTId,LeadSponsorName,Phase,BriefTitle,Org...max_rnk=" & Number.ToText( limit )"&fmt=csv&min_rnk=" & Number.ToText( offset )),[Delimiter=",", Columns=7, Encoding=65001, QuoteStyle=QuoteStyle.None]),
Does anyone see any issues with the syntax of my function here? I can make use of my "offset" variable but not "limit". Does it have something to do with my placement of quotation marks? Please let me know if further information is required to answer this question. Thanks a ton!
Solved! Go to Solution.
Hi, @tross4012
& is used to concatenate strings, so if there is no & in "", it should be placed outside "".
But I don't know what the specific form of the line is, so you need to modify it according to my attempt and your actual situation.
Try like this:
Best Regards,
Community Support Team _ Janey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @tross4012
& is used to concatenate strings, so if there is no & in "", it should be placed outside "".
But I don't know what the specific form of the line is, so you need to modify it according to my attempt and your actual situation.
Try like this:
Best Regards,
Community Support Team _ Janey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |