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

Australian financial year table

Hi all

 

Australian FY runs from 1st July to 30th June. 

 

I'm trying to build a date table in Power Query. Is there a way to change the format to show the financial year column as 2018 - 2019 as opposed to 2019 below? 

 

The same would apply for the quarters. At the moment Q1 starts from 1st January. For us, Q1 starts from 1 Jul to 30 Sept and so forth. 

 

At the same time, is it advisable to add this FY column using M via Power Query or thru DAX? 

 

teoyuan_0-1649403608071.png

teoyuan_1-1649403840685.png

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try like

if Date.Month([Date]) < 7 then Number.ToText(Date.Year([Date]) -1) & "-" & Number.ToText(Date.Year([Date])) else Number.ToText(Date.Year([Date]) ) & "-" & Number.ToText(Date.Year([Date]) + 1)

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Try like

if Date.Month([Date]) < 7 then Number.ToText(Date.Year([Date]) -1) & "-" & Number.ToText(Date.Year([Date])) else Number.ToText(Date.Year([Date]) ) & "-" & Number.ToText(Date.Year([Date]) + 1)

 

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.