cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

View solution in original post

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

View solution in original post

AnthonyPhan
Level 8

Re: Nested Concat

Cheers! this worked perfectly.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

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

Top Kudoed Authors
Users Online
Currently online: 204 members 3,307 guests
Please welcome our newest community members: