Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello All!
I have a bar chart that shows a number of total activities for a given month and year. The chart starts with Feb 2022 and comes up to Feb 2023.
The order should be:
Feb-22
Apr-22
Jun-22
Aug-22
Oct-22
Nov22
Dec-22
Jan-23
Feb-23
When I sort ascending or decending, it always shows out of order.
I created the last 2 custom columns, MonthYear and RelativeMonth based on the Date column.
MonthYear
= Date.ToText ([Date], "MMM-yy")
RelativeMonth
= 12 * Date.Year([Date]) * Date.Month([Date]) - 12 * Date.Year(DateToday) - Date.Month(DateToday)
(sn: I created a DateToday quiery)
MonthYear is formatted as Text. RelativeMonth is formatted as Whole Number.
I thought it would work by sorting the graph by MonthYear and then ascending or descending, but it's not working.
Any help will be greatly appreciated!
Solved! Go to Solution.
@e175429 Try using a numeric Sort By column.
@e175429 Try using a numeric Sort By column.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |