Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
rmcgrath
Advocate II
Advocate II

Trouble with X-axis

Hello.  My company reports a lot of financials in monthly periods, using the format "202301" (for January 2023).  As I plot those on the X-axis, Power BI increments the periods: [I wanted it to show 202300, 202301, 202302, 202303, etc.]

Power BI increments the periodsPower BI increments the periods

I tried switching to "Categorical", but the ordering of the x-axis got screwed up:

Strange ordering?Strange ordering?

Lastly, in my .pbix file, I have a Dimension table specifically for the periods, but that does not seem to be helping with the ordering of the x-axis?:

dimPeriods table.jpg

Any help on getting the order correct on the x-axis would be greatly appreciated!

1 ACCEPTED SOLUTION
samratpbi
Super User
Super User

Hi,

can you try to sort your x-axis?

If you click your visual, at top right of the visual, 3 dots appear.

samratpbi_1-1713278878178.png

If this resolves your problem, then please mark it as solution, Thanks!

View solution in original post

4 REPLIES 4
qqqqqwwwweeerrr
Super User
Super User

Hi @rmcgrath 

 

You can check this video where you can sort by column: https://youtu.be/PUaFtLpIMvY

 

Here first you need to create new table with respect to you period and assign the required order and it will be shorted. 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem

Regards

Thank you!  This is also helpful...sorting the axis did the trick

samratpbi
Super User
Super User

Hi,

can you try to sort your x-axis?

If you click your visual, at top right of the visual, 3 dots appear.

samratpbi_1-1713278878178.png

If this resolves your problem, then please mark it as solution, Thanks!

Omg - thank you!!  I didn't even realize that option was contained within the 3 dots!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors