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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Sajid02
Helper I
Helper I

How to sort Month name in slicers as per financial year

I have tried to create a month slicer wherein i would like to display month name as per financial year i .e start from April and ends up in March . 

 

Sajid02_0-1648028304850.png

 

I have created a column per accounting period and month name , but when trying to sort it by accounting period, changes is not affecting by this . 

 

Sajid02_1-1648028404061.png

 

Sajid02_2-1648028440938.png

 

Even after this sorting , months in slicers are not getting impacted by this and showing like the first image only .

 

Help me on this issue .  Many Thanks !

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Sajid02 , Create a month year sort column for month year

if(month([Date]) <=4, (YEAR([Date]) -1)*100 + month([Date]) +9, (YEAR([Date]) )*100 + month([Date]) -3)

 

 

for month sort

month Sort =

if(month([Date]) <=4, month([Date]) +9,  month([Date]) -3)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Sajid02 , Create a month year sort column for month year

if(month([Date]) <=4, (YEAR([Date]) -1)*100 + month([Date]) +9, (YEAR([Date]) )*100 + month([Date]) -3)

 

 

for month sort

month Sort =

if(month([Date]) <=4, month([Date]) +9,  month([Date]) -3)

Thanks a lot  !  Solved my problem .

One small changes however required to do  as instead of 4 in the Dax we have to use 3 to get April as 1 and so on. 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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