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 / Patching table with tw...
Power Apps
Unanswered

Patching table with two galleries

(0) ShareShare
ReportReport
Posted on by 20

I have a data table that has columns Name, Task, Days

NameTaskDays
Jon

Take out laundry

2
JonClean dishes3
BobTake out laundry4
BobClean dishes6

I would like to create a gallery(ies) that can input the data like below. Where if you add a new task with the click of one button it automatically creates two input fields for days for both Names. I am not sure if this is even possible with multiple galleries and one button for Patching a table. Any help in the right direction would be greatly appreciated. 

TaskJonBob
Take out laundry24
Clean dishes36
<Input New task><Input Days><Input Days>

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,393 Most Valuable Professional on at

    Hi @nekinekic ,

    This will get you the data you want, but not the format as you cannot dynamically name fields in Power Apps.

    AddColumns(
     GroupBy(
     YourTableName,
     "Tasks",
     "Name",
     "OtherData"
     ),
     "NoTasks",
     CountRows(OtherData)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • proxyprochy Profile Picture
    92 on at

    The previous answer seem to be working.

     

    also, if you want to display those in a nice way, I found this video .

  • nekinekic Profile Picture
    20 on at

    Thank you for the responses. Just to clarify I did not want to create any new fields. I wanted to arrange the galleries in a such a way so that the data can be collected in the permuted way, but the table fields remain the same. 

  • WarrenBelz Profile Picture
    154,393 Most Valuable Professional on at

    @nekinekic ,

    I understand what you want, but it is simply not possible to do in Power Apps for two reasons. Firstly, you cannot dynamically create column names - there may be a complex (sort of) workaround using nested galleries, but I am sure that is not what you are after. Secondly, the moment you use Distinct or GroupBy, only one column is returned, so you have to add the others back in.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard