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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
owneyjs15
New Member

Column Concatenation

I'm trying to concatenate a column value to a string. The step #"Extracted Text Between Deliminaters" has a column Web Color and i want to reference that in the next step where the underline is. What is the correct syntax for referencing the current column value?

#"Extracted Text Between Delimiters" = Table.TransformColumns(#"Extracted Table From Html", {{"Web Color", each Text.BetweenDelimiters(_, "Color=", "&"), type text}}),
#"Loaded Style Number" = Web.BrowserContents("https://www.brooksbrothers.com/on/demandware.store/Sites-brooksbrothers-Site/default/Product-Variation?pid=" & item & "&dwvar_" & item & "_Color=" & ______________________ & "&format=ajax"),

 

1 ACCEPTED SOLUTION
Jimmy801
Community Champion
Community Champion

Hello @owneyjs15 

 

sorry, I don't get the point. Your Web.Contents-function needs a scalar value and i suppose your column contains multiple rows. So should these rows somehow put together, or what is the goal? I think your real need is to invoke web.contents for every row in your table, and use the column Web Color as parameter. Is this what you need? Then your code should look like this (not tested)

#"Extracted Text Between Delimiters" = Table.TransformColumns(#"Extracted Table From Html", {{"Web Color", each Text.BetweenDelimiters(_, "Color=", "&"), type text}}),
#"Loaded Style Number" = Table.AddColumn(#"Extracted Text Between Delimiters", "Style Number", each Web.BrowserContents("https://www.brooksbrothers.com/on/demandware.store/Sites-brooksbrothers-Site/default/Product-Variation?pid=" & item & "&dwvar_" & item & "_Color=" & [Web Color] & "&format=ajax"),


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

View solution in original post

1 REPLY 1
Jimmy801
Community Champion
Community Champion

Hello @owneyjs15 

 

sorry, I don't get the point. Your Web.Contents-function needs a scalar value and i suppose your column contains multiple rows. So should these rows somehow put together, or what is the goal? I think your real need is to invoke web.contents for every row in your table, and use the column Web Color as parameter. Is this what you need? Then your code should look like this (not tested)

#"Extracted Text Between Delimiters" = Table.TransformColumns(#"Extracted Table From Html", {{"Web Color", each Text.BetweenDelimiters(_, "Color=", "&"), type text}}),
#"Loaded Style Number" = Table.AddColumn(#"Extracted Text Between Delimiters", "Style Number", each Web.BrowserContents("https://www.brooksbrothers.com/on/demandware.store/Sites-brooksbrothers-Site/default/Product-Variation?pid=" & item & "&dwvar_" & item & "_Color=" & [Web Color] & "&format=ajax"),


If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too

Have fun

Jimmy

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors