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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MostafaGamal
Helper V
Helper V

how to arrange data in chart ( axis )

Hi all, 

I have a table like this 

Capture (1).PNG

when i use it in a chart the axis values are not arranged is not as in the table, i wnat it to be arranged as in the table ( July - august - September - ........ ) , how to do that ?? 

 

Capture.PNG

 

i tried to make a column from 1 to 12 and use sort by column function in column tool but it didnt work 

 

1 ACCEPTED SOLUTION

@MostafaGamal - See the attached PBIX file below sig. You want Page 34, Table (34):

Greg_Deckler_0-1599519761136.png

Greg_Deckler_1-1599519837926.png

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
Greg_Deckler
Super User
Super User

@MostafaGamal - Well, you had the correct idea using a Sort by column. How is the table visual sorted? Not sure why it would not work in your line chart using the Sort by, that is a very common way to do what you are trying to do. And when you say didn't work are you saying you got an error trying to do it or that it didn't sort properly?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

i have done like what you have done in your file and still the same problem, i dont know what is the issue now  

 

@MostafaGamal Make sure that your Sort on your visual is correct:

Greg_Deckler_0-1599521863595.png

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler  by it didnt work i mean that the data is not sorted correctly as i want or as it exists in the table 

i didnt know what you mean by " How is the table visual sorted " ? 

@MostafaGamal - See the attached PBIX file below sig. You want Page 34, Table (34):

Greg_Deckler_0-1599519761136.png

Greg_Deckler_1-1599519837926.png

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

thanks it works fine now the problem was that the type of the index column was text when i convert it to whole number it works fine 

 

@MostafaGamal - Ah, shoot, I should have thought of that!!


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.