Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Anonymous
Not applicable

extracting values from API column in Power Query

After some steps i have a column with API link. what i want to do is create a new column with values that extracted from API column.

 

Lets say API column is Path. That consists API's. i need to related values for each row of API with new column.

 

 

sample Expected output:

Path Values

API1 18

API2 90

API3 37

 

What i tried:

 

 

I tried to use Invoked function and gives me a 4 fields.

 

ex: 

 

let
LoadData = (player as text) as table=>

let

source=Record.ToTable(Json.Document(Web.Contents("https://....................."&player)))

in
source
in
LoadData

 

 

This return 4 fields.

 

example:

 

domcv_0-1654171744852.png

out of 4 values i only need to get total(item number 4 of above pic) values along with my API caolumn.

 

2 REPLIES 2
negi007
Community Champion
Community Champion

@Anonymous if you wish to extract values from another column, it can be done easily in power query window. in the power query winow, right click on your api column and then select the option "add column from example"  this will create a blank column for you.  in the new column, type 2-3 values that you want as output. Power Query automatically fill other values basis your criteria. 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

No.  i want to get API assioited values. I tried your approach didnt give the expected result.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors