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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Hari_Gopal
Advocate I
Advocate I

Month Slicer Sorting

Hari_Gopal_0-1640265727887.png

Hello Everyone,

 

When I placed month names in a slicer which was sorted according to Indian fiscal year month number, I got the 2nd visual.

But I want to display as 1st visual.

Any suggestions? 

11 REPLIES 11
Anonymous
Not applicable

Hi @Hari_Gopal 

In my pbix file , you can find the ID for slicer and number for column chart are different columns , in column chart , the sorting is based on the column of Apr=1, May=2 as the standard .

I changed it in my pbix file and attached it again , you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

Hi, I did understand what you did.

The previous scenario what I mentioned has the following issues

 

a) If we select present fiscal year, months order is changing in slicer and

b) you placed number column in value field of bar chart but if we place some other value column in value field, how can we sort?

 

Anonymous
Not applicable

Hi @Hari_Gopal 

Then you can only start with the name of the X-axis value, and you can add an order in front, but the display is not so good. Create a calculated column and put it in Axis .

Column = 'Table'[number] & "-" &'Table'[Month]

Ailsamsft_0-1640673879101.png

Ailsamsft_1-1640673879103.png

Best Regard

Community Support Team _ Ailsa Tao

Ok, thank you @Anonymous.

 

But what about this thing

a) Let us assume that we have fiscal year and respective months column,

Hari_Gopal_1-1640675587903.png

 


      Present fiscal year doesnt have all the 12 months,  then months order in the slicer is changing. How can we fix it?

Hari_Gopal_0-1640675497739.png

 

 

          

Anonymous
Not applicable

Hi @Hari_Gopal 

You can change the order in visual options, sort axis by fiscal month number and set Sort ascending . This operation does not affect the sequence of the slicer, because it is set in a single visual. You can have a try .

Ailsamsft_0-1640655713887.png

Best Regard

Community Support Team _ Ailsa Tao

Hi, once look at the below scenario

 

 

Hari_Gopal_0-1640669242340.png

Hari_Gopal_2-1640669420583.png

 

 

Anonymous
Not applicable

Hi @Hari_Gopal 

In slicer , there are two orientations for Slicer : Vertical and Horizontal .When you choose Horizontal , the visual displays as the screenshot below .

Ailsamsft_0-1640582165116.png

So if you want to change the location of the Month , you need add a column to define the order of the Month . Then sort the month by the ID in Data view .

Ailsamsft_1-1640582165118.png

Ailsamsft_2-1640582165120.png

You will get a visual like this :

Ailsamsft_3-1640582165121.png

I have attached my pbix file , you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

I also tried this way but the problem with this way is when we place this month column in bar chart, the order is different from the actual(apr, may, june ----mar)

Greg_Deckler
Super User
Super User

@Hari_Gopal Oh, I see it is sorting vertically versus horizontally. There is no setting that I know of to change that. However, if you shrink it vertically it will sort horizontally across.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

@Hari_Gopal So you generally need a column with the order you want and you use that as the "Sort by" column. Without seeing your data, it is hard to be more specific.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

It's a general month name column and sorted by fiscal month number( Apr = 1 to Mar = 12) column.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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