web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Did I create a table n...
Power Apps
Answered

Did I create a table nested in another table?

(0) ShareShare
ReportReport
Posted on by

So a bit of exposition is required:

 

I have a single column table, TimesNoFormat, which is nested in a gallery (for reasons I'm not sure are relevent to the question so I'll leave them out).

 

What I'm trying to do is concatenate the values in this table with a value from a row in the gallery. 

 

Eg. The table items in row one in the gallery will go from 0015, 0030.... to M0015, M0030.

 

In the Items property of the table I have used:

 

AddColumns(
 TimesNoFormat,
 "RoomNumber",
 Concatenate(
 ThisItem.Title,
 TimesNoFormat.'New Times'
 )
)

Which is not throwing any errors.

 

However, when I try to display the items in the new column as text on a button I get the error:

 

"The property expects Text values, but this rule produces incompatable table values"

 

I've tired ThisItem.RoomNumber but it's still not having it.

 

Is it saying that the item in the table is a table itself?

 

I'm struggling to fathom what exactly is wrong.

 

Hopefully that is enough info for somone to assist but feel free to ask for more.

 

Cheers,

 

Categories:
I have the same question (0)
  • Verified answer
    Lewkir Profile Picture
    on at

    Solved it b removing "ThisItem" and the table name:

     

    AddColumns(
     TimesNoFormat,
     "RoomNumber",
     Concatenate(Title,'New Times') 
    )

     

    No idea why it worked but it does.

  • Verified answer
    CarlosFigueira Profile Picture
    on at

    Within an AddColumns call for the table TimesNoFormat, all members of that table are in scope - so if you want to access the 'New Times' property, you can do it directly. When you specified "TimesNoFormat.'New Times'" as an argument of the Concatenate function, then you went you went out of the record scope and back to the "global scope", retrieving a table with all values for the 'New Times' property of TimesNoFormat. If you change your expression to this:

    AddColumns(
     TimesNoFormat,
     "RoomNumber",
     Concatenate(
     ThisItem.Title,
     'New Times'
     )
    )

    I believe you should get the result you want.

    Hope this helps!

  • Lewkir Profile Picture
    on at

    Thanks Carlos.

     

    I worked it out a mere 3 minutes before you answered but as you also explained why it worked I'll give you the accepted solution. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard