cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RitaPedrosa
Level: Powered On

Excel (more than 1 table)

Hi everyone

 

I have 2 diferent tables on Excel:

> Courses

> Attendees

 

How can I connect the 2 tables (ID Course) and start to build a PowerApp?

 

I am starting to take my first steps... 

 

Thanks 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Excel (more than 1 table)

Hi @RitaPedrosa ,

Could you describe more clearly about "connect these two tables"? what function that you want?

If you want to filter table2 based on table1's Course ID, you could try:

Filter(table2,Course ID in table1.Course ID)

If you want to combine table1 with table2, you could try:

ForAll(table2,Patch(table1,LookUp(table1,Course ID=table1[@Course ID]),{fieldname1:fieldname11,fieldname2:fieldname22,...})
//fieldname1 and fieldname2 is fields in table1, fieldname11 and fieldname22 is fields in table2
//in this way, table1 will be updated with the data of table2

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Dual Super User
Dual Super User

Re: Excel (more than 1 table)

If you want the Excel tables to be Read/Write you'll need to store them on OneDrive or OneDrive for business.  If they are Read only then you can store them in various places.  Once you've decided how to use them then create the appropriate Excel connector and choose the storage location, the excel file and the two tables.  They will then show as data sources in your application.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Community Support Team
Community Support Team

Re: Excel (more than 1 table)

Hi @RitaPedrosa ,

Could you describe more clearly about the function that you want?

In PowerApps, there's no direct way to connect two tables.

However, you could read or write items based on two tables.

 

The first step is to format your excel file.

All your data should be formatted to table. Or else, it can not be used in PowerApps.

 

Secondly, connect data source.

If you just want to read your excel files, you could select "import from excel" or "one drive".

If you want to update records, I suggest you update your excel files to one drive, and then choose one drive when connecting data source.

Please note that you need to connect with these two tables. 10153.PNG

 

Thirdly, design your app. You could "connect tables" in this step.

Read/Write based on these two tables.

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
RitaPedrosa
Level: Powered On

Re: Excel (more than 1 table)

Thanks for your help 🙂

 

I want to connect this two tables using Course ID.

Maybe Excel is not the best way to store data Smiley Frustrated

 

 

Capturar.PNG

Community Support Team
Community Support Team

Re: Excel (more than 1 table)

Hi @RitaPedrosa ,

Could you describe more clearly about "connect these two tables"? what function that you want?

If you want to filter table2 based on table1's Course ID, you could try:

Filter(table2,Course ID in table1.Course ID)

If you want to combine table1 with table2, you could try:

ForAll(table2,Patch(table1,LookUp(table1,Course ID=table1[@Course ID]),{fieldname1:fieldname11,fieldname2:fieldname22,...})
//fieldname1 and fieldname2 is fields in table1, fieldname11 and fieldname22 is fields in table2
//in this way, table1 will be updated with the data of table2

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

RitaPedrosa
Level: Powered On

Re: Excel (more than 1 table)

Perfect Smiley Happy 

Thanks!!!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,952)