Forum Discussion
Sort dates by financial month order
- 9 years ago
Hi JustShaun,
Based on my research, a workaround is recreating the FinancialMonthNumber in the Query Editor. If you go to Edit Queries, you can use the Add Custom Column feature in the Add Column tab in the ribbon. Use this formula:
if Date.Month([FullDateAlternateKey])<4 then Date.Month([FullDateAlternateKey])+9 else Date.Month([FullDateAlternateKey])-3
Once you Close and Apply, you can then go to the Data pane and sort your dates column by FinancialMonthNumber. Here is the similar thread for your reference.:smileyhappy:
Regards
- 9 years ago
Hi JustShaun
You need to create a financial month column in date table / calendar. I have used below calculation for the same
FiscalMonth = SWITCH(MONTH(Calendar[DateKey].[Date]),1,10,2,11,3,12,4,01,5,02,6,03,7,04,8,05,9,06,10,07,11,08,12,09)
I hope this way can sort your data by financial month.
All the best!
Anupam
Hi JustShaun
You need to create a financial month column in date table / calendar. I have used below calculation for the same
FiscalMonth = SWITCH(MONTH(Calendar[DateKey].[Date]),1,10,2,11,3,12,4,01,5,02,6,03,7,04,8,05,9,06,10,07,11,08,12,09)
I hope this way can sort your data by financial month.
All the best!
Anupam