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 two data sources...
Power Apps
Answered

Using two data sources in one Gallery

(0) ShareShare
ReportReport
Posted on by 235

Hi everyone, I am new to using powerapps. I am trying to connect two data sources in one gallery. One data source is a lookup table where a user can select on a predefined list of data, the other is for saving the data based on user selections. How can I make this add new row button works that add data on the gallery whenever I hit it. It seems that it doesn't add another thing to my gallery. Thanks!

 

Here's my new row button code:

 

Patch(
 'DataSource',
 Defaults('DataSource'),
 {'Job Category': ""}
)

 

 Items on my gallery

 

Defaults('DataSource')

 

 

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

    Hi @rbalza :

    Please set the gallery's items property to:

     

    'DataSource'

    The Defaults function is used to create a base record with default values.

    vbofengmsft_0-1630991714928.png

     

     

    Best Regards,

    Bof

  • Verified answer
    ShrikantKore Profile Picture
    19 on at

    You should follow this video

     

    https://youtu.be/U-WN4OFZ1kw

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 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard