Forum Discussion

Vtomsons's avatar
Vtomsons
Icon for Helper I rankHelper I
6 years ago
Solved

Date Change from DD-MM-YYYY

I have one data source giving me trouble because it is DD-MM-YYYY formatted. When I change the data from text to date, Power BI is not consistent with numbers in the day or month column below 12. I need to have the month data accurate so I can define a Fiscal year starting in May using the syntax below.

 

Can anyone help ensure my date can transfer the month data accurately?

 

Fiscal Year = IF(MONTH('NC Reg''n'[Current Registration Status Date])>4,YEAR('NC Reg''n'[Current Registration Status Date])+1,YEAR('NC Reg''n'[Current Registration Status Date]))

 

Thanks,

 

Val

  • Thank you very much. My data is a little messed up right now after trying a few ways. I'll try your suggestion and let you know how it goes in the next few days.

     

    Thanks so much for your time and advice.

     

    Val

6 Replies