Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Selwynster
Helper II
Helper II

Power Apps Integration - Default Value

Hi

I have a fairly simple integration that works fine. I'm just struggling adding a default value to a power apps text box instead of the user having to capture it in (when adding a new record in power apps).
The 2 visuals below refer: (On the left is a normal table visual, on the right is the power apps visual)

Selwynster_0-1641970152714.png

 

Please  help with the needed power apps code (something along the lines of Gallery1.Selected maybe?)

4 REPLIES 4
Anonymous
Not applicable

Hi @Selwynster ,

For either type of form, you set its DataSource property to a table of records, and you set the form's Item property to show a specific record in that table.

 

If you add a Gallery control, you can configure it to show a table in a data source and then configure a form to show whichever record the user selects in the gallery. You can also add one or more Button controls that the user can select to save edits, cancel edits, and create a record. 

More details : Edit form and Display form controls in Power Apps 

 

The Last function returns the last record of a table.

See: First, FirstN, Last, and LastN functions in Power Apps 

 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @Anonymous , the problem is there is no record to select in the gallery, because it is a different dataset. So I cant use Gallery1.selected
It looks like i may have to create a view in the Database that does a left join to the other table, and then bring that field into the Powerapps visual. 🙄

Anonymous
Not applicable

Hi @Selwynster ,

 

Please refer to the following steps to see if it helps you.

 

Assuming the table on the left is the data source for Apps, and go to the items property of the Gallery to fill it. Then Set the properties of the table on the right to Gallery1 Selected. And set the data source for this table to the table on the left.

 

Please refer to the following document to see if it helps you.

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-form

 

 

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-polly-msft , but the table on the left is a seperate Data source altogther.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.