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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Guys,
I'm fairly new to Power BI and I'm tryng to create a small dashboard for a client. the problem is when using my data on a line graph, if selected 1 month, the dates are in chronological order, however, if I do beggining of the year to date the months show un sorted. see picture below.
Solved! Go to Solution.
Create a new column using this DAX formula :
YearMonthInt = <tablename>[Date].[Year]*100 + <tablename>[Date].[MonthNo]
Then, select the Date column > In the Modelling tab, select 'Sort By Column' option and sort the Date column by the new Column u created.
Create a new column using this DAX formula :
YearMonthInt = <tablename>[Date].[Year]*100 + <tablename>[Date].[MonthNo]
Then, select the Date column > In the Modelling tab, select 'Sort By Column' option and sort the Date column by the new Column u created.
I highlighted the arrows that you should click
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 119 | |
| 100 | |
| 72 | |
| 69 | |
| 65 |