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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
aarenellsworth
Frequent Visitor

Start table with first month of fiscal year

I'm trying to build a table based on fiscal years, which start October 1.  Anyone know how to get the table to start with October instead of January?  Thanks!

 

aarenellsworth_0-1651275344452.png

 

1 ACCEPTED SOLUTION
hnguy71
Memorable Member
Memorable Member

Hi @aarenellsworth ,

 

WIthin your date table, you would need to have another column indicating the fiscal month number:

FiscalMonthNumber = 

VAR _FirstFiscalMonth = 10
VAR _CurrMonthNum = MONTH([Date])

RETURN

_CurrMonthNum - _FirstFiscalMonth + 1 + 12 * (_CurrMonthNum < _FirstFiscalMonth )

 

hnguy71_0-1651284352047.png

 

Then you would select your Month Text column, and then select Sort By Column and select your new column FiscalMonthNumber.

hnguy71_1-1651284493825.png

 

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

View solution in original post

7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

Hello community, I'm new using power bi, it's not clear to me why it would have to multiply, or what that part means?

David1234_0-1683854774554.png

v-jayw-msft
Community Support
Community Support

Hi @aarenellsworth ,

 

Is the [Month] fiscal month?

Please refer these formulas.

FY = "FY"&year(EDATE('Table'[date],9))
FM = format(EDATE('Table'[date],9),"MMMM")
Sort = MONTH('Table'[date])
Create the visual like below and sort [FM] by [sort].
vjaywmsft_0-1651729348779.png

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Thanks Jay!  This didn't really work for me, but I didn't tweak it much because hnguy71's solution worked on the first try.  I appreciate the help!

hnguy71
Memorable Member
Memorable Member

Hi @aarenellsworth ,

 

WIthin your date table, you would need to have another column indicating the fiscal month number:

FiscalMonthNumber = 

VAR _FirstFiscalMonth = 10
VAR _CurrMonthNum = MONTH([Date])

RETURN

_CurrMonthNum - _FirstFiscalMonth + 1 + 12 * (_CurrMonthNum < _FirstFiscalMonth )

 

hnguy71_0-1651284352047.png

 

Then you would select your Month Text column, and then select Sort By Column and select your new column FiscalMonthNumber.

hnguy71_1-1651284493825.png

 

 



Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Thank you!  This worked for me.

 

I made a new column and wrote:

 

aarenellsworth_0-1651772485058.png

Then I made a "Month Name" column and I sorted it by the first column I made.

 

Month Name = FORMAT([Encounter Date], "mmmm")
OwenAuger
Super User
Super User

Hi @aarenellsworth 

In short, you need to add a sort-by column for your Month column.

I generally create a "Fiscal Month" column, corresponding to the month of the fiscal year.

  • October => 1
  • November => 2
  • etc...

 

You can do this any number of ways, either in the data source or in Power BI.

 

In Power Query or DAX, I would add a fixed number of months to each date, and take the calendar month of that date. For years starting October, you would add 3 months.

 

A snippet of M code defining Fiscal Month in your case could be:

Date.Month(Date.AddMonths([Date],3))

 

After adding the "Fiscal Month" column, set Month to sort by "Fiscal Month" (docs on Sort By).

 

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

Thank you!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.