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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rmcgrath
Helper I
Helper I

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
Solution Supplier
Solution Supplier

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: https://www.youtube.com/@letssolveproblem

Regards

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

samratpbi
Solution Supplier
Solution Supplier

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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