Reputation: 671
I'm creating a line chart in PowerBi for NPS where the line legend is the year and the x-axi label is the first initial of the month. I'm having a dilemma in sorting the month initial. Can someone assist on this? thanks in advance.
Upvotes: 0
Views: 2476
Reputation:
There are two ways to sort.
The first one is on graph level, meaning that you will only sort one specific graph:
Steps:
However, this will most likely not provide you with the right solution. Since it is already sorted on date letter, but in alphabetical order.
Therefore the second solution, sort on colum.
First, we go to the data tab (Or columns tab). In my example, I have opened a date table to match your question. Here I select the 'MonthShort' (MaandKort) because I want it sorted based on a number instead of on letters.
Sort on column:
Sort on column select:
If you click the column, it automatically opens the 'kolomhulpmiddelen' tab. Here you can select the 'sort on column' pane and click on the column you want to sort on.
In my case, I chose the monthnumber. So from now on, if I use the MonthShort in a graph, it will sort it based on the monthnumber, meaning that I will see Jan - Feb - Mar etc.
Note: This is from the Dutch version of Power BI.
Upvotes: 0