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
Anonymous
Not applicable

Creating a Fiscal Date Column

Hi all,

 

I have seen a lot of infomation about creating Fiscal Year columns. But I have not seen anything about creating Fiscal Date Column.

 

So the constraints are on this sitauation where:

 

A date table that was based on the max and min dates in the model

A date table that contains Fiscal Date column.

Calanderauto(7) was not working and returned all dates.

 

My current solution is:

 

New Calander/Date table

DateTime = CALENDAR(min('Order'[Date]),max('sales'[Date]))
FinancialDate = if(DateTime[DateTime].[MonthNo]<7,FORMAT(DateTime[DateTime], "dd/mm/yyyy"), FORMAT(DATE(DateTime[DateTime].[Year]-1, DateTime[DateTime].[MonthNo],DateTime[DateTime].[Day]), "dd/mm/yyyy"))
 
However, this version above has an issue with month order. So;
Financial Date = if(DateTime[DateTime].[MonthNo]<7,FORMAT(DATE(DateTime[DateTime].[Year], DateTime[DateTime].[MonthNo]+6,DateTime[DateTime].[Day]), "dd/mm/yyyy"), FORMAT(DATE(DateTime[DateTime].[Year]-1, DateTime[DateTime].[MonthNo]-6,DateTime[DateTime].[Day]), "dd/mm/yyyy"))This will work fine with month order.
 
This still has an issue with month name. So I would not use it for display. But should be fine for relative date slicing and the like.
 
I would be interested to know if there is an M/Power Query version.
 
🙂
2 REPLIES 2
Greg_Deckler
Super User
Super User

Sorry, what is the difference between a date column and a fiscal date column? Can you show me visually one versus the other?


@ 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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thank you greg for responding!

 

The basic idea was that of having a regular date column. But with based around a fiscal year. I.e. The year starts in month 7 or 4 etc.

 

This would enable all the regular features that come with a Date column but with fiscal year as the basis.

 

Although recently, I have possibly concluded that it may be a waste of time and just using regular date for drilling, with a fiscal date category seperate for slicing, is probably fine and good enough.

 

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.