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 / Using ShowColumns & Re...
Power Apps
Answered

Using ShowColumns & RenameColumns within ClearCollect

(0) ShareShare
ReportReport
Posted on by 28

Hi so I have a couple galleries (Seen Below) and I was wondering if it was possible to use ShowColumns and RenameColumns within the same Clear collect. I am just trying to see if I can cut down on the amount of collections built of the same data. 

 

ClearCollect(
        galCollect,
        ShowColumns(hidden_all_your_taskers_gallery.AllItems,"Title","Users_That_Submitted","Status")
);

and 

ClearCollect(
        myTheory,
               RenameColumns(
                     galCollect,
                     "Title","coll_Title",
                     "Users_That_Submitted","coll_Users_That_Submitted",
                     "Status","coll_Status"
         )            
);

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @hitty 

    Yes, Please consider changing your Formula to the following:

    ClearCollect(
     myTheory,
     RenameColumns(
     ShowColumns(hidden_all_your_taskers_gallery.AllItems,"Title","Users_That_Submitted","Status"),
     "Title","coll_Title",
     "Users_That_Submitted","coll_Users_That_Submitted",
     "Status","coll_Status"
     ) 
     )
    )

     

    I hope this is helpful for you.

  • hitty Profile Picture
    28 on at

    Thank you, I knew I had the syntax wrong! 

  • hitty Profile Picture
    28 on at

    @RandyHayes 

    Could I add Ungroup into this along with show columns? My "Users_That_Submitted" is a nested table so I have been un grouping it into a separate collection after. Is it possible to do that within the same set of code?

     

    So Un

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 397 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard