Forum Discussion

blackhall8's avatar
blackhall8
Frequent Visitor
6 years ago
Solved

Extracting specific dates from text column

I can't seem to figure out how to extract a specific date from a text column in my data table. As you can see below, I have a "Source Column" that includes a comma seperated list of interactions. Wha...
  • Anonymous's avatar
    Anonymous
    6 years ago

    if Text.Contains([Sources], "ZP")

    then

    Text.Middle([Sources],Text.PositionOf([Sources], "ZP") -13,11)

    else

    null

     

    Text.Middle goes into sources, starting from the position of "ZP" minus 13 and extracts 11 charachters.

     

    Adjust 13 and 11 if needed.