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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Call custom column into a function

Hello community,

I have a list of URL's in a custom column in Table 1 extracted from a webside. Also, I want to extract data from each link in the list creating a Table 2 and then converted it in a function. Is there any chance to call that custom column into my function using DAX coding that allows me to put out Table 2?

(Address as text) as table =>

let
Source = Web.BrowserContents("https://website.com/address/numbers", [WaitFor=[Timeout=#duration(0, 0, 0, 2)]]),
#"Extracted Table From Html" = Html.Table(Source, {{"Column1", ".key-row-bg-colour .tbl-row-cell-heading"}, {"Column2", ".key-row-bg-colour TD"}}, [RowSelector=".key-row-bg-colour"]),
#"Changed Type" = Table.TransformColumnTypes(#"Extracted Table From Html",{{"Column1", type text}, {"Column2", type text}})
in
#"Changed Type"


"https://website.com/Different_addressess_from_customColumn/different_numbers_from_customColumn" I do not know if that makes sense to anybody, I am still a newbie.

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello

 

this would be quite difficult to describe to newbie.

You can create a basic function to extract the data from such a website https://website.com/Different_addressess_from_customColumn/different_numbers_from_customColumn"  using two parameters to build the complete path. Then use the new function and add a new column with the function, imputing values of 2 different columns to feed the function. function could look like

 

(addresscustomcolumn, numberscustomcolumn) =>

let

    webresult = ource = Web.BrowserContents("https://website.com/" & addresscustomcolumn & "/" & numberscustomcolumn etc....

 

Hope you got an idea how to work it out

Good look

Jimmy

View solution in original post

4 REPLIES 4
Jimmy801
Community Champion
Community Champion

Hello

 

this would be quite difficult to describe to newbie.

You can create a basic function to extract the data from such a website https://website.com/Different_addressess_from_customColumn/different_numbers_from_customColumn"  using two parameters to build the complete path. Then use the new function and add a new column with the function, imputing values of 2 different columns to feed the function. function could look like

 

(addresscustomcolumn, numberscustomcolumn) =>

let

    webresult = ource = Web.BrowserContents("https://website.com/" & addresscustomcolumn & "/" & numberscustomcolumn etc....

 

Hope you got an idea how to work it out

Good look

Jimmy

Anonymous
Not applicable

Well, It took me a while to understand the process but I made it work. Thanks for the help.

However, come back if you need further assistance

 

If this post helps or solves your problem, please mark it as solution.
Kudos are nice to - thanks
Have fun

Jimmy

If my post helps or solves your problem, please mark it as solution.
Kudos are nice to - thanks
Have fun

Jimmy

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.