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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MalvikaBhasin
Helper III
Helper III

Line Chart - gone incorrect

Hi,

Below is my data for which I want to create line chart. 

However, the line chart I created is showing months in an incorrect manner - neither ascending or descending. 

Can you guide how can it be corrected?

 

Linechart3.JPGLinechart2.JPG

1 ACCEPTED SOLUTION

Like the link I have sent, you must add a column with the number of the month. You can build a logic checking the name of each month in order to set the number. This video might help.
https://www.youtube.com/watch?v=NlX7Cp2P0d4

Remember you can add a custom column at Power Query or DAX to build the IF or Switch logic for mapping the months.

I hope that make sense


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

View solution in original post

5 REPLIES 5
MalvikaBhasin
Helper III
Helper III

Hi Ibarru,

I tried modelling and sorting BUT data is not getting sorted by Weeks/Months instead by Revenue.

 

Part 1.pngPart 2.png

Regards

Malvika

ibarrau
Super User
Super User

Hi. In order to let power bi understand that the order of the months is not alphabetical, you must have the number of the months to specify the order. You can do it adding a column or creating the calendar table and relate it. Check this example of how to order by other column:

https://community.fabric.microsoft.com/t5/Desktop/How-to-get-line-chart-sorted-by-month/td-p/3241078

I hope that helps,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Hi Ibaru,

 

I sorted it Week wise, and here still is uneven output in terms of Week. 

 

 

MalvikaBhasin_0-1716962248771.png

 

 

Regards

Malvika

Hi,

 

Why am I not getting the option of COLUMN TOOLS to sort month-wise? 

 

Column Tools.JPG

 

 

 

Regards

Malvika

Like the link I have sent, you must add a column with the number of the month. You can build a logic checking the name of each month in order to set the number. This video might help.
https://www.youtube.com/watch?v=NlX7Cp2P0d4

Remember you can add a custom column at Power Query or DAX to build the IF or Switch logic for mapping the months.

I hope that make sense


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.