You sir are a god send!! Just when I was about to through in the towel with the refresh problems.
@PowerBIFerryTales3 жыл бұрын
Thank you. It is a frustrating issue to have to deal with, so I'm really happy to see it helped you out. 🙂
@MrZdzisz Жыл бұрын
Whoa, what a lesson. Concise and effective. Thank you!
@twatkins6333 жыл бұрын
Exactly what I needed. Thanks for taking the time to make this video!
@PowerBIFerryTales3 жыл бұрын
Thank you! I'm really pleased it came in handy.
@johndonnelly39342 жыл бұрын
I'm close on this, but encountering errors when I invoke the function. I'm thinking it is likely due to a Headers clause with 3 other parameters that need to get passed to the API as part of the JSON call. A Pubic Key, ClientID, and Authorization code after the url. Error is - Expression Error: 3 arguments were passed to a function which expects between 1 and 2. Details: Pattern= Arguments=[List] Thoughts/feedback? I'm assuming that the RelativePath comes before Headers, but uncertain of punctuation.
@seamushand84392 жыл бұрын
You removed a lot of the black magic from API for me. Thank you
@darkmatter531011 ай бұрын
Very helpful and elaborate information.
@ahmedmegahedcyc2 жыл бұрын
Thanks for your efforts. Really appreciate it. What I search for
@mathieudager4234 Жыл бұрын
Neat. Really just neat. Big Up. Thanks for sharing
@ОльгаГонца-у2о10 ай бұрын
Very helpful video. Thanks! I have a question. If I invoke the function to all list values (players in your case) - is these data keeps in data flow? or every time the data is getting from API?
@MrAdnanfayyaz2 жыл бұрын
How to add two different parameters from two different tables?
@jaysonbarrientos22983 жыл бұрын
Thanks for this! Helped a lot!
@PowerBIFerryTales3 жыл бұрын
Thanks, I'm happy it helped you!
@אלכסנחשונוב-פ5ע3 жыл бұрын
Wow, Fantastic!!! Thank you so much
@arturotorres4903 Жыл бұрын
Is this possible if we have 2 or more parameters that we wanted to change?
@Jpalfarog8 ай бұрын
Excelent!!! you really help me thanks!
@SamVeneman2 жыл бұрын
If your API call has authorization where do you put the headers in the code?
@PowerBIFerryTales2 жыл бұрын
Precisely what to write depends on the API, so best check the documentation, but this usually works: Source = Json.Document(Web.Contents("URL FIRST PART", /* URL VARIABLE */ [RelativePath =URL VARIABLE AGAIN] & [Headers= [Authorization= "Basic XXXXXXXXX"] & [Accept = "application/json"]])),
@nilangikapade16572 жыл бұрын
That was really helpful. Thanks a ton!!!
@DanielVoyles2 жыл бұрын
If an API is passing the variable in the body of the JSON package with double-quotes required, how do you enter the variable? I have tried ""&(id)&"" and several other iterations, but nothing seems to work.
@JacobClements-f3f Жыл бұрын
For some reason this works for me, but the data stops at page 50. Is there a way to get around this?
@lehlohonolomakoti78282 жыл бұрын
Amazing video, right to the rescue 👏👏
@saadnageeb4633 Жыл бұрын
Thanks so much ,it worked very fine with me.
@imranalishah292210 ай бұрын
Thanks for the video, i have question, what if I have to define relative from SOAP API Body, the parameter for my API exists in body of SOAP. i.e. "& jobid &" Now when I run this as function, it works but when try to use it Invoke Custom function, it gives error. Please help
@mrkraymnd2 жыл бұрын
i followed this from scratch... it's working well in desktop but when i published i receive the following error - any ideas? [Unable to combine data] Section1/Task/Expanded data references other queries or steps, so it may not directly access a data source. Please rebuild this data combination.. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action.
@mrkraymnd2 жыл бұрын
BTW, i am doing api calls against Adobe, not player data :P
@saadhafeez91712 жыл бұрын
Hi I have tried your way. it gives me only 50 rows per request of the id. is there a way to fetch all of the data for each id in same formula or any any other function? need your help I am stuck for days.
@PowerBIFerryTales2 жыл бұрын
Hi Saad, are you using the same API I use in the video or something different?
@saadhafeez91712 жыл бұрын
@@PowerBIFerryTales with different API. How to get all the rows with of each id ?
@PowerBIFerryTales2 жыл бұрын
@@saadhafeez9171 I will reply to the email you sent.
@mradzi872 жыл бұрын
I followed the same steps, but when I invoke a value I got this as an error Expression.Error: We cannot convert a value of type Record to type Number. Details: Value=[Record] Type=[Type] Do I need to change anything on the table itself ?
@giftcp82 Жыл бұрын
This is a good tutorial. For those looking foe pagination please review the list.generate function
@benmarshall85163 жыл бұрын
Brilliant, thank you !
@jasminef287 Жыл бұрын
you're a G, ty!
@NickL-s6b Жыл бұрын
So this works great the problem I run into is function queries are not able to be refreshed on the web app. Anyone figured out a work around?
@arysa60964 ай бұрын
Hello, hope you found a solution. Im leaving this in case someone runs into the same issue kzbin.infoa0FqNLI0VsQ?si=B476mrxBiBpuWjZ0 I was able to "fool" PowerBI Service into stablishing a connection to the domain instead of the API Url using PowerQuery syntax. Good luck!
@arysa60964 ай бұрын
Hello, hope you found a solution. Im leaving this in case someone runs into the same issue kzbin.infoa0FqNLI0VsQ?si=B476mrxBiBpuWjZ0 I was able to "fool" PowerBI Service into stablishing a connection to the domain instead of the API Url using PowerQuery syntax. Good luck!
@brunomedeiros81233 жыл бұрын
I followed the steps just like in the video, but in the "Invoked function custom" step I got the following error: Expression.Error: The type specified wasn't recognized. Details Table Can you help me?
@PowerBIFerryTales3 жыл бұрын
Hey Bruno, it could be that you're using a number field with a text field. Before you do the 'Invoked Custom Function' first first change the data type to text.
@benmarshall85163 жыл бұрын
i think it might be becuase it is in uppercase? I found when I wanted to put the type to date I ran into error when I typed "Date"
@CHQAQC2 жыл бұрын
Great video which was easy to follow. A couple of questions. 1) I notice the player photos are included as ######.jpg. What is the picture URL to show the picture? 2) In what table is the team data (points/goals) recorded? thanks in advance!
@CHQAQC2 жыл бұрын
The Team Data table is pretty much empty in my case. Do I need to set up relationship to another table or has it been faulty implemented by the guy behind my screen?
@culebradiver2 жыл бұрын
👏👏👏👏👏👏 Many thanks!
@PowerBIFerryTales2 жыл бұрын
Happy it helped! 🙂
@LikhitAnuraag2 жыл бұрын
Just perfect!
@jourdango26153 жыл бұрын
What if the API doesn't tell you how many rows there are to retrieve?
@PowerBIFerryTales3 жыл бұрын
I wish I didn't have to say 'it depends', but...it depends. Each API will have a logical starting point, regardless of the data you're working with. Usually there is an endpoint which lists all the unique IDs , and from there you request how much data you want to see, often within a specifiable date range, or range relevant to the data type. It really does depend on the API, but there is usually some form of documentation to steer you in the right direction. Though API documentation is often pretty garbage.
@jourdango26153 жыл бұрын
@@PowerBIFerryTales So the api i am working on now is for a school. The api is called TeachWorks. Based on its documentation, you can only return 80 rows at a time and the way that you traverse is just by page=1 , page = 2 … parameter. But there doesnt seem to be a way to list all IDs or get total count of rows. Right now my implementation is quite crude. First round counts how many rows there are. Second round returns data for countOfRows/80 pages. But it takes really long cuz each endpoint equals 2 rounds :((
@PowerBIFerryTales3 жыл бұрын
@@jourdango2615 Just taking a look at the documentation now. Maybe send me an email with a bit more info such as which precise endpoints you're looking at. My email is on my website. powerbiguy.co
@jourdango26153 жыл бұрын
@@PowerBIFerryTales thank you!!!!!!
@NatureMajili2 жыл бұрын
ApI throws error when publish as source combine error. The same file works at desktop.
@yared78062 жыл бұрын
What if I have to iterate since the first API call?. Let me explain... in my case, I have to call a method in the API to get the customers, which divides the info into pages. I don't know how many pages there are, and there is no way I can get all the info at once because the method has a limit of 100 users per call. Fantastic video, by the way; I had no idea this could be done using PowerBI.
@PowerBIFerryTales2 жыл бұрын
Hi Yared, the solution that I use for this, is to be honest perhaps not the best, so I will give it a quick check and get back to you. :)
@darksoca2 жыл бұрын
Thank you SOOO much
@anthonyflorianterrapon6575 Жыл бұрын
Great video, I tried to use it for Web.BrowserContents for HTML and it’s not working. Any ideas ?