Forum Discussion

Adzam's avatar
Adzam
Regular Visitor
8 years ago
Solved

Format Clarion Date

Hi, I am importing data from SQL server 2010. Several columns are in clarion date format. How do I format the field to display the date correctly. In excel its easy, just subtract 36161 from ...
  • v-yulgu-msft's avatar
    8 years ago

    Hi Adzam,

     

    In Power BI, you can still use the same logic to clarion date, please refer to below M code. Open Query Editor mode, add a custom column:

     

    =Date.AddDays(DateTime.FromText("1900-01-01"), [Clarion Date]-36161)

     

    Best regards,
    Yuliana Gu