Introduction

The RenameColumns() function in Power Apps is used to rename one or more columns in a table or data source. It is useful when you want to change column names temporarily while working with data.

Syntax

RenameColumns(
    Table,
    OldColumnName,
    NewColumnName
)

To rename multiple columns:

RenameColumns(
    Table,
    OldColumnName1,
    NewColumnName1,
    OldColumnName2,
    NewColumnName2
)

Example 1: Rename a Single Column

Suppose you have a collection called EmployeeData:

EmployeeNameDepartmentCity
KetanITMehsana
VimalHRAhmedabad

To rename the EmployeeName column to Name:

RenameColumns(
    EmployeeData,
    EmployeeName,
    Name
)

Result

NameDepartmentCity
KetanITMehsana
VimalHRAhmedabad

Example 2: Rename Multiple Columns

You can rename multiple columns in a single formula:

RenameColumns(
    EmployeeData,
    EmployeeName,
    Name,
    Department,
    Team
)

Result

NameTeamCity
KetanITMehsana
VimalHRAhmedabad

Example 3: Rename a Column in a Gallery

Suppose a Gallery displays data from EmployeeData, and you want to rename EmployeeName to Name:

RenameColumns(
    EmployeeData,
    EmployeeName,
    Name
)

You can use the result as the Gallery's Items property.

Then, inside the Gallery, use:

ThisItem.Name

instead of:

ThisItem.EmployeeName

Example 4: Rename Columns After Filter

You can combine Filter() and RenameColumns().

RenameColumns(
    Filter(
        EmployeeData,
        Department = "IT"
    ),
    EmployeeName,
    Name
)

This formula:

  1. Filters employees from the IT department.

  2. Renames EmployeeName to Name.

Example 5: Rename Columns After AddColumns

You can also combine AddColumns() and RenameColumns():

RenameColumns(
    AddColumns(
        EmployeeData,
        FullName,
        EmployeeName & " - " & Department
    ),
    FullName,
    EmployeeDisplayName
)

Here, a new column called FullName is created and then renamed to EmployeeDisplayName.

Rename Fun

Important Notes

Common Use Cases

RenameColumns() is commonly used when:

Quick Comparison

FunctionPurpose
ShowColumns()Select specific columns
DropColumns()Remove specific columns
RenameColumns()Rename existing columns
AddColumns()Add new calculated columns

Simple Example

RenameColumns(
    EmployeeData,
    EmployeeName,
    Name
)

In short: RenameColumns()Rename an existing column in a table result.

Conclusion

The RenameColumns() function in Power Apps is a useful table-shaping function that allows you to rename one or more columns without changing the original data source. It is especially helpful when preparing data for galleries, creating cleaner column names, or avoiding column-name conflicts when working with multiple tables.