Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi guys,
I'm trying to model my month table so it will appear in my table correctly, but it's doing alphabetically.
Can anyone give a hand? I wanna order by year and month.
P.S. I did the sort by column and gave a numeric column as reference, but it's not the correct order
thanks!
Solved! Go to Solution.
Hi,
I just removed the Acidentes column and added it back. It worked fine.
Hi @Anonymous
You need to use the "Sort by column" feature to force the sort order of your months to be based on a numeric column.
Hi, Phil.
I did that, but it is giving me that result you see on the image. Only the year 2010 (October - December) is right, all the others are in the wrong order.
Hi @Anonymous
Does the column you are sorting by contain both the year and month as part of it? eg,
YYYYMM
or
201001
201002
201003
etc
You can generate this using the format command, eg, = FORMAT([date col],"YYYYMM")
Hi Phil
so I created the new YM column, but when I click on my Month name column and sort by YM, it gives me this error: There can't be more than one value in YM column for the same value in Month Name.
Any ideia why?
Hi @Anonymous,
Can u create a new column (month order column) like (if January = 1, February = 2... and do so..) ?
After that try to sort by this new column.
I hope it helps you.
Hi,
I just removed the Acidentes column and added it back. It worked fine.
Probably because there is some weird overlap?
Any chance you can send a cut down version of your PBIX File? maybe make a copy, delete any non-essential tables and send it through so we can take a look
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |