March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I am showing a bar chart with date data on the x-axis. I want to group the data by Year Month, like so:
Here I have data from June 2019 to February 2020, grouped by Month. The years are at the bottom as I am not concantanating the labels.
Someone made a hierarchy for me called Arrived Year Hierarchy and that allowed me to get the sort correct. The only thing I would like to do now, and it is really just a nice to have, but I would prefer to keep the sort on Year/Month but report month in text, so 6 is June and so on. I have read several posts but cannot glean from them what to do.
Solved! Go to Solution.
@bschmiedeler you should use sort by feature, so assuming you have Month in text, Jan. Feb...March...and so on,
add another column in your model for month number
Month Number = MONTH ( YourTable[YourDate] )
Select your Month column and go to column tools menu and from there in sort by drop down, choose Month Number. Basically you are telling that Month column is sorted by month number column.
Now if you use Month (text) column on x-axis, it will be sorted out correctly.
Would appreciate Kudos 🙂 if my solution helped.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@bschmiedeler you should use sort by feature, so assuming you have Month in text, Jan. Feb...March...and so on,
add another column in your model for month number
Month Number = MONTH ( YourTable[YourDate] )
Select your Month column and go to column tools menu and from there in sort by drop down, choose Month Number. Basically you are telling that Month column is sorted by month number column.
Now if you use Month (text) column on x-axis, it will be sorted out correctly.
Would appreciate Kudos 🙂 if my solution helped.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
85 | |
69 | |
54 | |
45 |
User | Count |
---|---|
204 | |
106 | |
98 | |
65 | |
54 |