Forum Discussion

Khomotjo's avatar
Khomotjo
Helper II
1 year ago
Solved

Format Date_Time

Morning I have a date_time field and I want to  only the date Field. This is the original data :      This is the table when I format and select short date , The issue is that Power Bi still...
  • danextian's avatar
    1 year ago

    You are seeing multiple dates because you simply changed the display or formatting but not the actual data type. Several methods to extract the date:

     

     

     

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Khomotjo ,

     

    Thanks to danextian  and uzuntasgokberk  for their quick answers. I have some other thoughts to add:
    (1) Here is my test data.

    (2) Create a calculation table. Select the Date column to change the data type.

    Table =
    ADDCOLUMNS (
        SUMMARIZE ( 'Table_3', [FinalisedDate], [id] ),
        "date",
            DATE ( YEAR ( [FinalisedDate] ), MONTH ( [FinalisedDate] ), DAY ( [FinalisedDate] ) )
    )
    

     

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.