Table Function in Power Apps

We can create a table in the power apps manually by using the Table function. This might be to populate a Dropdown control or to define information to be used in a Gallery or Data table control.

The Table function allows us to create a table of data that only exists in the context, which it is used within our app.

Syntax Table(Records)

• Records: We can specify the comma separated records. The Records in Power apps is represented by the curly braces {}.

Example: In the Items property of a Data table, , we can use the following power apps formula:

PowerApps Formula

Table(
{FirstName: "Ashish", LastName: "Goel", ZipCode: 131001},
{FirstName: "Abhishek", LastName: "Bachhan", ZipCode: 456785},
{FirstName: "Ayesha", LastName: "Sharma", ZipCode: 4533257},
{FirstName: "Priya", LastName: "Verma", ZipCode: 678537}
)
Table function in Power Apps

To see the items appear in the Table, be sure to Edit fields in Properties.

Sometimes we need a simpler, single column Table for populating a Dropdown control choices. In that instance you can use the short cut method of [ ] to create a single column table. An example of creating a single column table is shown below.

PowerApps Formula

["Ashish", "Harsha", "Juhi"]

By placing that formula in the Items property of a Dropdown control, we will see the following.

Table function in Power Apps
Table function in Power Apps