Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Return Date field from Text

Hello Experts,   Date value needs to arrive Date value from this text field - 06/25/2020 01:28 PM America/Indianpolis   The value existing in Column is called Completion date I have written the ...
  • jdbuchanan71's avatar
    jdbuchanan71
    6 years ago

    MID is a function that pulls part of a text string.  (7,4) tells the engine to start at the 7th character and get 4 characters which returns '2020'

  • mahoneypat's avatar
    mahoneypat
    6 years ago

    Yes.  That's the great thing about Power BI.  Your data transformation steps and DAX expressions (columns) are saved and re-applied at each refresh.

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat

  • v-lionel-msft's avatar
    v-lionel-msft
    6 years ago

    Hi Anonymous ,

     

    1. Use Dax.

    2. Use M query.

     

    Best regards,
    Lionel Chen

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