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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Rename Column in neste...
Power Apps
Answered

Rename Column in nested collection

(0) ShareShare
ReportReport
Posted on by 204

Hi Guys,

 

How do I rename a column within a nested collection.

 

Example collection A, has a nested collection within column header age.

 

I want to change the column value within Collection A nested collection Age column Result to Output

RenameColumns(A,Age ,"Result ", "Output")

 

Tried this although does not work.

 

Any help is greatly appreciated.

 

Thanks 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @christian12 ,

     

    I assume there is a collection:

    ClearCollect(
     A,
     {Id:1,Age:Table({Result:"1"})},
     {Id:2,Age:Table({Result:"1"},{Result:"2"})}
    );

     

    You could use this formula to rename the 'Result' to 'Output':

    GroupBy(RenameColumns(Ungroup(A,"Age"),"Result","Output"),"Id","Age")

     

    Best Regards,

    Bof

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard