April, August, December…: your month axis is sorted alphabetically

Updated 2026-11-27 · 2 min read

Symptom

Trend lines zig-zag because months are in the wrong order.

Cause

Text columns sort alphabetically by default.

Fix

Sort by column: month name by month number.

The problem

The month axis reads April, August, December, February. Power BI sorts text alphabetically.

The fix

  1. In the date table, keep a month number column (1 to 12).
  2. Select the month name column.
  3. Column tools › Sort by column › Month number.
-- Calculated columns in the date table
Month number = MONTH ( 'Date'[Date] )
Month = FORMAT ( 'Date'[Date], "mmm" )
Year-month key = YEAR ( 'Date'[Date] ) * 100 + MONTH ( 'Date'[Date] )

For a label such as "Jan 26" that spans several years, sort it by the year-month key.

Keep learning

Generate a Power BI report for free