cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AnthonyPhan
Level 8

Nested Concat

Hi All,

I am using the Concat function to generate a HTML table based on a collection. This is similar to what is being done here. For my application It would be very nice to have a concat funcation nested inside another Concat funcation (similar to having a for loop inside another for loop in C). However Im not sure how to reference the 'Result' of the child Concat.

 

For example:

if we have table a and b below:

Table A Table B
1 a
2 b
3 c



and I try to do this:
Concat( A, concat(B,  "A:" & Result & " B: " & Result & "<br /> ")

I hope to get something like:
A: 1 B:a
A: 1 B:b

A: 1 B:c
A: 2 B:a
A: 2 B:b
A: 2 B:c
A: 3 B:a
A :3 B:b
A :3 B:c


How can i distinguish A.Result from B.Result?? At the moment Result will always reference the result of the parent Concat.

1 ACCEPTED SOLUTION

Accepted Solutions
mr-dang
Level 10

Re: Nested Concat

 

You can use RenameColumns() to rename the Result for either of them.

 

Assuming your formula is already working:

Concat(A, Concat(RenameColumns(B,"Result","Result_B"),  "A:" & Result & " B: " & Result_B & "<br /> ")

The renaming is not permanent and is only scoped to the formula.

 

Let me know if this works for you.

Microsoft Employee
@8bitclassroom
2 REPLIES 2
mr-dang
Level 10

Re: Nested Concat

 

You can use RenameColumns() to rename the Result for either of them.

 

Assuming your formula is already working:

Concat(A, Concat(RenameColumns(B,"Result","Result_B"),  "A:" & Result & " B: " & Result_B & "<br /> ")

The renaming is not permanent and is only scoped to the formula.

 

Let me know if this works for you.

Microsoft Employee
@8bitclassroom
Highlighted
AnthonyPhan
Level 8

Re: Nested Concat

Cheers! this worked perfectly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 73 members 4,231 guests
Please welcome our newest community members: