Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server Analysis Services
Azure Analysis Services
Fabric/Power BI Premium
You can sort data by text (A to Z or Z to A) and numbers (smallest to largest or largest to smallest) in one or more columns.
In the model designer, select a column of alphanumeric data, a range of cells in a column, or make sure that the active cell is in a table column that contains alphanumeric data, and then click the arrow in the header of the column that you want to filter by.
In the AutoFilter menu, do one of the following:
To sort in ascending alphanumeric order, click Sort A to Z.
To sort in descending alphanumeric order, click Sort Z to A.
Note
In some cases, data imported from another application might have leading spaces inserted before data. You must remove the leading spaces in order to correctly sort the data.
In the model designer, select a column of alphanumeric data, a range of cells in a column, or make sure that the active cell is in a table column that contains alphanumeric data, and then click the arrow in the header of the column that you want to filter by.
In the AutoFilter menu, do one of the following:
To sort from low numbers to high numbers, click Sort Smallest to Largest.
To sort from high numbers to low numbers, click Sort Largest to Smallest.
Note
If the results are not what you expected, the column might contain numbers stored as text and not as numbers. For example, negative numbers imported from some accounting systems, or a number entered with a leading ' (apostrophe), are stored as text.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest Fabric, Power BI, and SQL learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Certification
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Demonstrate methods and best practices that align with business and technical requirements for modeling, visualizing, and analyzing data with Microsoft Power BI.
Documentation
Filter data in an Analysis Services tabular model table
Learn how to apply filters when you import data to control the rows that are loaded into a table.
Add columns to an Analysis Services tabular model table
Learn how to add columns to an Analysis Services tabular model table.
Calculated columns in Analysis Services tabular models
Learn how calculated columns enable you to add new data to your model.