Forum Discussion
Only select certain columns from source
pezwi - Well, if this was a SQL source you could use a View or write a SQL statement but since it is a Web API you are going to be limited to the functionality of that Web API. For example, I believe ODATA allows you to specify columns/fields but not sure about just any old Web API.
- pezwi6 years agoFrequent Visitor
I'll have to look into the Odata option. I'm not finding a lot of examples for that.
Currently I'm pulling the data into a list which is capturing all the records. It would be great if I could do loop through the records but I'm having trouble figuring that out.
Source = List.Generate(
() => getPage(""),
each _[scrollToken] <> null,
each getPage(_[scrollToken]),
each [scrollToken = _[scrollToken], records = _[records]]
),- mahoneypat6 years agoMicrosoft Employee
Here is an article I wrote last year that may help you get started with using OData. It includes examples of adding $select and other ways to let you limit the initial amount of data returned.
https://powerpivotpro.com/2019/02/some-odata-tips/
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat