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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sanjyot_firke
Helper I
Helper I

How to Convert FY24 Aug to a date format 01/08/2023?

We have data coming in year as FY24 and month as Aug. How do we convert that to 01/08/2023?

FY is financial year  and the year starts from July and ends in June.

 

Regards,

Sanjyot

1 ACCEPTED SOLUTION
SamInogic
Super User
Super User

Hi @sanjyot_firke , 

 

As per our understandings you are looking for date change from FY year which starts in the July and ends in June, 

 

Initially We have to create the FYDate using below DAX Expression,

FY_Date =

var FormatedYear = RIGHT(LEFT(Table4[Date],4),2)

var FormtatedMonth = Right(Table4[Date],3)

var UpdatedMonth = SWITCH(FormtatedMonth,

"Jan","07","Feb","08","Mar","09","Apr","10","May","11","Jun","12","July","1","Aug","02","Sep","03","Oct","04","Nov","05","Dec","06")

var UpdatedDate = CONCATENATE(CONCATENATE(UpdatedMonth,"/"),CONCATENATE("01/",CONCATENATE("20",FormatedYear)))

return UpdatedDate

And Need to change the data-type to Date and format as dd/mm/yyyy,

 

SamInogic_0-1687415229654.png


There after we have create one more column that will be Resultant column,

Result =

Var FyMonthNo = Table4[FY_Date].[MonthNo]

var standardMonthno = IF(FyMonthNo<6,FyMonthNo+6,IF(FyMonthNo>6,FyMonthNo-6))

var standardYear = IF(FyMonthNo<6,Table4[FY_Date].[Year]-1,IF(FyMonthNo>6,Table4[FY_Date].[Year]))

var UpdatedDate = CONCATENATE("01/",CONCATENATE(CONCATENATE(standardMonthno,"/"),standardYear))

return UpdatedDate

You can change the Data-Type and formatting for this column as well, 

SamInogic_1-1687415254023.png

 

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

View solution in original post

1 REPLY 1
SamInogic
Super User
Super User

Hi @sanjyot_firke , 

 

As per our understandings you are looking for date change from FY year which starts in the July and ends in June, 

 

Initially We have to create the FYDate using below DAX Expression,

FY_Date =

var FormatedYear = RIGHT(LEFT(Table4[Date],4),2)

var FormtatedMonth = Right(Table4[Date],3)

var UpdatedMonth = SWITCH(FormtatedMonth,

"Jan","07","Feb","08","Mar","09","Apr","10","May","11","Jun","12","July","1","Aug","02","Sep","03","Oct","04","Nov","05","Dec","06")

var UpdatedDate = CONCATENATE(CONCATENATE(UpdatedMonth,"/"),CONCATENATE("01/",CONCATENATE("20",FormatedYear)))

return UpdatedDate

And Need to change the data-type to Date and format as dd/mm/yyyy,

 

SamInogic_0-1687415229654.png


There after we have create one more column that will be Resultant column,

Result =

Var FyMonthNo = Table4[FY_Date].[MonthNo]

var standardMonthno = IF(FyMonthNo<6,FyMonthNo+6,IF(FyMonthNo>6,FyMonthNo-6))

var standardYear = IF(FyMonthNo<6,Table4[FY_Date].[Year]-1,IF(FyMonthNo>6,Table4[FY_Date].[Year]))

var UpdatedDate = CONCATENATE("01/",CONCATENATE(CONCATENATE(standardMonthno,"/"),standardYear))

return UpdatedDate

You can change the Data-Type and formatting for this column as well, 

SamInogic_1-1687415254023.png

 

Thanks!

Inogic Professional Services Division

Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!

Drop an email at crm@inogic.com

Services:  http://www.inogic.com/services/

Power Platform/Dynamics 365 CRM Tips and Tricks:  http://www.inogic.com/blog/

Inogic Professional Services: Power Platform/Dynamics 365 CRM
An expert technical extension for your techno-functional business needs
Service: https://www.inogic.com/services/
Tips and Tricks: https://www.inogic.com/blog/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors