Using Sesame Data with PowerBi
Last updated
Last updated
This tutorial shows how to use Power Query to use the Paged Holdings endpoint.
Open PowerBi desktop
Click on Get data
and select Web
Select Basic
, paste the URL, click OK
You will find more information about the URL Holdings
When the authorization window pops up, select Basic
, type in your Username
and Password
(read more)
It will arrive at a screen similar as below:
Then it is needed to delete all Applied Steps
and only keep Source
:
Right Click on totalPages
and select Add as a new query
:
Once the new query is created, click on Advanced Editor
at the top:
Then change the code to produce a list of pages:
Click on To Table
at the top left:
When pop up window appears, click OK
:
Select the original table and click on List
:
Then click on To Table
and click OK
:
Click on Expand Columns
icon and click OK
:
Click on Advanced Editor
and add the following code at the beginning:
(page as text) =>
As well as changing the page to be a parameter:
Rename the function to getPage
to be more clear
Change the column type to Text
:
Select the other table totalPages (2)
then click on Invoke Custom Function
:
Select the function we created previously and click OK
:
Click Expand Columns
and click OK
:
Finally, click Close & Apply
: