Exercise - Create a rollup column

Completed

In this exercise, you'll create a count of the total number of passengers that have booked a seat on a cruise by using a rollup column. If you haven't created the custom table as a part of this learning path, you can complete the steps here to create the related tables, and here to create the business rules to facilitate the completion of these exercises.

  1. Sign in to Power Apps.

  2. Select Tables > Cruises.

  3. Select Columns from the Schema pane then + New column from the Columns screen.

  4. Enter the following into the new column panel:

    New Column Entry Value
    Display Name Passenger Count
    Data Type Whole Number
  5. Select the Behavior drop-down and select Rollup.

  6. Select the Save button.

  7. After you've saved the changes, the ROLLUP FIELD editor opens in a popup browser instance. If it doesn't appear, check your pop-up settings.

    Tip

    Drag and expand the rollup field definition screen to make sure that you can see the check mark button, as shown in the following screenshot. Select the Passengers table, and then select the check mark button.

    Screenshot of the rollup definition screen with the check mark button.

  8. After you've selected the check mark button next to Passengers (Cruise ID), select the Add Aggregation button (you don't need to set a filter).

    Screenshot of the + Add Aggregation button.

  9. Define the aggregation by selecting COUNT in the Aggregate function drop-down menu and selecting Passengers in the Aggregated Related Entity Field column drop-down menu. Select the check mark button in the lower right corner of the entry field.

    Screenshot of the Aggregate Function Count and the check mark button selected.

  10. Select the Save and Close button to save this new rollup. This will close the rollup design screen and return you to the table detail screen.

    Screenshot of the Save and Close button to save the rollup.

Congratulations! You've created a rollup column called Passenger Count that you can use in solutions that you create that use the Cruises table.