Live training: next batches coming soon. Join the waitlist:Waitlists open:Developer Training →Developer →Copilot Studio Training →Copilot Studio →

Power BI Sort Table by Date: Ascending, Newest First and Months in Order

If you’ve built a Power BI table with an order date, you’ve probably seen the dates come out jumbled: March, May, June, then August. The table isn’t broken; it’s sorted by the sales column, and one click on the date header fixes it.

In this tutorial, we’ll cover every power bi sort table by date option I use: the header click for oldest first, a second click for newest first, the More options menu, months in calendar order and the text-date trap.

Every screenshot and number below comes from my demo report in Power BI Desktop, tested on 11/22/2026.

The Sample Sales Table We’ll Sort

My demo report loads one table, Sales, from my demo file SPGuides_Sales_2026.csv: 60 orders from 01/12/2026 to 09/09/2026, $165,701 in total. Here are the rows that matter for sorting:

OrderIDOrderDateRegionStateCategoryProductSalesRepSales
SO-102001/12/2026WestAZSoftwareVisio Plan 2Rachel Morgan$1,440
SO-102701/18/2026EastCTLaptopsThinkPad X1Rachel Morgan$8,694
SO-101103/18/2026WestCOLaptopsThinkPad X1Brian Keller$11,592
SO-105804/06/2026EastVTAccessoriesSurface KeyboardMarcus Hale$258
SO-103304/10/2026EastNJMonitorsUltraSharp 27Brian Keller$1,257
SO-101205/13/2026EastMELaptopsThinkPad X1Marcus Hale$11,592
SO-103806/23/2026EastMELaptopsSurface Laptop 7Brian Keller$10,392
SO-105709/07/2026EastMELaptopsSurface Laptop 7Brian Keller$6,495
SO-103209/09/2026EastMALaptopsThinkPad X1Rachel Morgan$5,796

Two rows are tricky on purpose. SO-1011 and SO-1012 have the same amount, so a sales sort can’t tell them apart. And SO-1058 (April 6) is the row that exposes text dates later on.

To recreate the table, follow these steps in Power BI Desktop:

  1. Select Get data > Text/CSV, pick the CSV file and select Load. The same steps work for an Excel workbook or a SharePoint list.
  2. In the Visualizations pane, select the Table visual so an empty table appears on the canvas.
  3. From the Data pane, check OrderID, OrderDate and Product. Use the OrderDate field itself, not its Date Hierarchy, so the table shows one date column.
  4. Select New measure on the Home ribbon, enter the measure below and check it in the Data pane.
Total Sales Amount = SUM(Sales[Sales])

Note: With Arrange data for me turned on, adding the measure turned my table into a matrix. I switched it back by selecting the Table icon in the Visualizations pane.

Here’s the result. Power BI sorted the new table by Total Sales Amount, highest first, so the dates jump from March to May to June:

Power BI table sorted by Total Sales Amount by default with order dates out of order

Look for the small arrow under the Total Sales Amount header. That arrow always tells you which column drives the sort. If you need the oldest date per row instead of a sort, my DAX MIN date in Power BI post covers that.

Method 1: Sort a Power BI Table by Date With the Column Header (Recommended)

This is the fastest way, and it’s the one I use 90% of the time. Same Sales table, no formulas needed.

First select the table visual. Then click the OrderDate column header once. Power BI sorts the table by date in ascending order, oldest first:

Power BI table sorted by OrderDate ascending after one click on the column header

The table now starts with SO-1020 on Monday, January 12, 2026 ($1,440), then SO-1027 on 01/18/2026, SO-1014 on 01/21/2026, SO-1047 on 01/24/2026 and SO-1010 on 01/30/2026.

How does this work?

A table visual sorts by one column at a time. Clicking a header moves the sort to that column, and the arrow moves with it. The arrow points up for ascending.

Because OrderDate is a real Date column, Power BI compares the actual dates. The long format (Monday, January 12, 2026) is only how it’s displayed, so it doesn’t affect the order.

Important: If the visual isn’t selected yet, the first click only selects the visual (or a row). Click the header again once the visual is selected.

Method 2: Show Dates in Reverse Order in a Power BI Table (Newest First)

Most reports want the latest orders on top. To show dates in reverse order, click the same OrderDate header a second time. Ascending means oldest first; descending means newest first:

Power BI table sorted by OrderDate descending with the newest order date in the first row

Now SO-1032 on Wednesday, September 09, 2026 ($5,796) is at the top, followed by SO-1057 on 09/07/2026, SO-1023 on 09/04/2026 and SO-1035 on 08/30/2026.

How does this work?

A second click on the column that’s already sorted flips the direction. The arrow under OrderDate now points down, which means descending.

Power BI saves this sort with the report, so readers see the newest rows first when they open it. If you only want the single latest date on a card, a measure is simpler; see the Power BI DAX max date tutorial.

Pro Tip: Keep the date column in the table even if readers don’t need it, because a table can only sort by a field that’s in the visual. You can make the column narrow, but don’t remove it.

Method 3: Sort Ascending or Descending From the More Options Menu

The header click works on tables. The menu works on tables and most charts, and it’s what people mean when they ask how to sort a Power BI visual ascending by date.

Same table, sorted newest first. Here are the steps:

  1. Hover over the table and select More options (…) in its header.
  2. Point to Sort by and pick OrderDate.
  3. Open More options again and pick Sort ascending or Sort descending.
Power BI table More options menu with Sort by OrderDate checked and Sort descending checked

In my menu, Sort descending and OrderDate both have a checkmark, which matches the newest-first table from Method 2. The Sort by list shows every field in the visual: OrderID, OrderDate, Product and Total Sales Amount.

How does this work?

The menu sets the same two things the header does: which field to sort by and in which direction. The checkmarks show the current choice.

In some visuals the menu says Sort axis instead of Sort by. Treemaps, filled maps, scatter charts, gauges, waterfall charts and cards can’t be sorted at all. To sort by a second column, hold Shift and click the next header; my post on sorting by multiple columns in Power BI walks through it.

Method 4: Sort Months Chronologically in a Power BI Chart

Dates sort correctly because they’re dates. Month names don’t. Same Sales table, but now I add a text month column and plot it in a clustered column chart with Total Sales Amount on the Y-axis:

Order Month = FORMAT(Sales[OrderDate], "mmm")

By default, the chart sorted by value, highest first: Aug, Mar, Jun, May, Jan, Sep, Feb, Apr, Jul. So I opened More options > Sort by > Order Month, then Sort ascending:

Power BI column chart More options menu with Sort by Order Month and Sort ascending marked

Here’s what Power BI gave me. The months are in alphabetical order, not calendar order:

Power BI column chart with months sorted alphabetically from Apr to Sep

Apr, Aug, Feb, Jan, Jul, Jun, Mar, May, Sep. That’s correct for text, and wrong for a sales trend.

The fix is a numeric month column and the Sort by column setting. First add the number:

Order Month No = MONTH(Sales[OrderDate])

Then set the sort in Report view:

  1. Select Order Month in the Data pane. The Column tools tab appears in the ribbon.
  2. Select Sort by column.
  3. Pick Order Month No.
Power BI Column tools Sort by column dropdown with Order Month No selected for the Order Month column

The chart reorders right away:

Power BI column chart with months sorted chronologically from Jan to Sep after Sort by column

Now it reads Jan $14,472, Feb $9,719, Mar $32,329, Apr $8,366, May $20,786, Jun $22,979, Jul $5,840, Aug $38,199 and Sep $13,011. August is still the biggest month; it just sits where it belongs.

How does this work?

Sort by column tells Power BI: whenever you sort Order Month, use the values of Order Month No instead. Each month name maps to exactly one number (Jan = 1, Feb = 2), so the two columns have the same granularity.

The setting lives in the model, so every visual that uses Order Month follows it, including slicers. For slicers, see sorting a slicer by another column in Power BI, and to build the month names from numbers, read how to convert a month number to a month name.

Month and Year Labels (Jan 2026, Feb 2026)

My demo data only covers 2026, but a multi-year report needs the year in the sort key too, or every January lands together. The same Sort by column step works with a year-month number:

Month Year = FORMAT(Sales[OrderDate], "mmm yyyy")
Month Year Sort = YEAR(Sales[OrderDate]) * 100 + MONTH(Sales[OrderDate])

Sort Month Year by Month Year Sort (202601, 202602 …). Keep the sort column a whole number. A proper calendar table created with DAX is the best home for these columns.

Why Text Dates Won’t Sort Chronologically

This one catches people who format dates in DAX or import them from Excel as text. Same Sales table, but this column turns the date into text:

Order Date (Text) = FORMAT(Sales[OrderDate], "mmm d, yyyy")

I put it in a small table with OrderID and sorted it ascending:

Power BI table with a text date column sorted alphabetically so Apr 6 appears after Apr 29

Apr 10, Apr 15, Apr 17, Apr 24, Apr 28, Apr 29, and then Apr 6, 2026 (SO-1058). Text sorts character by character, so “6” comes after “2”. August even comes before January.

How does this work?

FORMAT always returns text, so Power BI sorts the result alphabetically. The real OrderDate column next to it still sorts correctly.

The fix: keep a real Date column for sorting and change only its display format in Column tools > Format.

If your dates arrive as text, change the column’s Data type to Date in Column tools or in Power Query. See converting yyyymmdd to a date in Power BI and converting a date to text in Power BI for the display side.

Which Date Sort Method Should You Pick?

You wantUseWhy
Oldest dates first in a tableClick the date header onceOne click, saved with the report
Newest dates first in a tableClick the header twiceThe arrow flips to descending
Sort a chart or any visual by dateMore options > Sort by + Sort ascending/descendingWorks on charts, not just tables
Months in calendar orderSort by column with a month numberFixes the alphabetical month order everywhere
Month and year labels in orderSort by column with a YYYYMM numberKeeps years apart

In Power BI, I’d start with the header click and only add a sort column when a text label needs calendar order. The Power BI tutorials on SPGuides cover the rest of the report-building steps.

What to Watch for When You Sort Dates in Power BI

Power BI sorting by date is simple until one of these shows up:

  • Date hierarchy columns: if the table shows Year, Quarter, Month and Day instead of one date, switch the field to OrderDate in the Columns well. My post on the Power BI date hierarchy explains where it comes from.
  • “Cannot use this column for sorting”: the sort column has more than one value for a label, such as two numbers for one month. Each label needs exactly one sort value.
  • Month numbers stored as text: “10” sorts before “2”. Make the sort column a Whole Number.
  • Sorting in Power Query: sorting the rows in Power Query doesn’t set the visual’s sort. Set the sort on the visual.
  • Slicers sort separately: a date slicer has its own sort. See the Power BI slicer sort descending post.

More Power BI tutorials from this same demo report:

Power BI Sort by Date: Common Questions

How do I sort a Power BI visual ascending by date?

Select the visual, open More options (…), point to Sort by and pick the date field, then choose Sort ascending. In a table, clicking the date header once does the same. Microsoft’s chart sorting article lists which visuals support it.

How do you show dates in reverse order in a Power BI table?

Click the date column header twice, or choose Sort descending in More options. The arrow under the header points down and the newest date moves to the first row.

Why are my months sorted alphabetically in Power BI?

A month name column is text, so Power BI sorts it A to Z (Apr, Aug, Feb). Add a month number column with MONTH(), select the month name column and set Column tools > Sort by column to the number.

Can I sort a Power BI table by a date that isn’t shown?

No. A table visual sorts only by fields in the visual. Add the date column, sort by it, and make it narrow if readers don’t need it.

Does Sort by column change every visual?

Yes. The setting belongs to the column in the model, so every visual using that column follows it. The Sort by column documentation on Microsoft Learn covers the errors too.