Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Nested tables

(0) ShareShare
ReportReport
Posted on by 85

Hi all,

I'm having trouble trying to figure out the proper way to get at data within tables within a collection.

The collection "availableapps" has a column "Application" which has tables with one row in each.  It also has a column "States" which has tables with one row in each. I'm needing to get the first row from each table within those columns, and ideally the Username column as well (that's not as important).  I've tried various combinations of First and Filter and LookUp to get at the first rows in each, to no avail.  Any pointers would be greatly appreciated.

 

availableapps.pngavailableapps2.pngavailableapps3.png

Categories:
  • timl Profile Picture
    35,202 Super User 2025 Season 1 on at
    Re: Nested tables

    You're welcome @russrimm1! I'm very glad you got this to work 🙂

  • russrimm1 Profile Picture
    85 on at
    Re: Nested tables

    Thanks @timl, so in doing that, it looks like Application is actually a record, not a table after all.  So with a small adjustment I used:

     

    AddColumns(availableapps,
    "ApplicationName",
    Application.DisplayName
    )

    ... and it worked!  I fought with that for so long and I never thought to use AddColumns. 😞   I'll get it one day.  Thanks a TON, I owe you a beer! 🙂

  • Verified answer
    timl Profile Picture
    35,202 Super User 2025 Season 1 on at
    Re: Nested tables

    Hi @russrimm1 

    If you set the items property of your drop-down to the following formula, ApplicationName should return the display name of the first record in the child application table.

     

    AddColumns(availableapps, 
     "ApplicationName",
     First(Application).DisplayName
    )

     

    If that works, you can logically extend the formula to include the application state name

     

    AddColumns(availableapps, 
     "ApplicationName",
     First(Application).DisplayName,
     "ApplicationState",
     First(AppState).AppState
    )

     

  • russrimm1 Profile Picture
    85 on at
    Re: Nested tables

    Hi @rubin_boer 

    I've tried just about everything I can think of.  I'm trying to get put the DisplayName of the Applications in a dropdown, and then based on which DisplayName is picked, Set the "ModelName" to a variable. I just figured out if I use a gallery and set the datasource to the collection, ThisItem,Application.DisplayName will display the names of the apps, but I ultimately would like them to show in a dropdown, and that's what i'm having trouble with now.  

  • rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at
    Re: Nested tables

    hi @russrimm1 

     

    can you please share the syntax of the first function you used? First(collection).columnname should return the first value to you.

     

     

     

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1