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
NnIc0
Frequent Visitor

getting Month of year starting from September to August

Hello guys,

 

I would like to have my date starting from september to august (to do a fiscal year)

 

Does somebody know how i can do it ?

 

Thanks 

Have a good day

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @NnIc0 ,

 

You can create a calendar table by  Calendar function. And create a custom fiscal year number sort column:

FYMonthNum =

          VAR FYStartMonth = 12

          //Update the fiscal year starting month above *Use number between 1 to 12

          RETURN

IF (

                    MONTH ( Dates[Date] ) >= FYStartMonth,

                    MONTH ( Dates[Date] )

– ( FYStartMonth – 1 ),

12

+ (

                         MONTH ( Dates[Date] )

– ( FYStartMonth – 1 )

)

)

Sort the month column in calendar table by the custom column and create relationship between your fact table and calendar table.

 

For more details, please refer to https://www.powerobjects.com/blog/2018/12/19/sorting-data-fiscal-year-power-bi/

 

Best Regards,

Dedmon Dai

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @NnIc0 ,

 

You can create a calendar table by  Calendar function. And create a custom fiscal year number sort column:

FYMonthNum =

          VAR FYStartMonth = 12

          //Update the fiscal year starting month above *Use number between 1 to 12

          RETURN

IF (

                    MONTH ( Dates[Date] ) >= FYStartMonth,

                    MONTH ( Dates[Date] )

– ( FYStartMonth – 1 ),

12

+ (

                         MONTH ( Dates[Date] )

– ( FYStartMonth – 1 )

)

)

Sort the month column in calendar table by the custom column and create relationship between your fact table and calendar table.

 

For more details, please refer to https://www.powerobjects.com/blog/2018/12/19/sorting-data-fiscal-year-power-bi/

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

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.