Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Removing Duplicate with different date format

Hello Everyone,   Before anything, here's some of the details you may need to know: My Steps: Content of Remove Duplicates1:     = Table.Distinct(#"Appended Query", {"Survey Date"})  ...
  • Greg_Deckler's avatar
    6 years ago

    Having this as text, I did this:

     

    let
        Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WstA3NNE3MjAyULC0MjCyMjRRCPBVitWJVgKJ6RpY6BqahBgZgqWM9SwtLQ2AQCk2FgA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t]),
        #"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type datetime}}),
        #"Changed Type1" = Table.TransformColumnTypes(#"Changed Type",{{"Column1", type number}}),
        #"Rounded Off" = Table.TransformColumns(#"Changed Type1",{{"Column1", each Number.Round(_, 7), type number}}),
        #"Removed Duplicates" = Table.Distinct(#"Rounded Off")
    in
        #"Removed Duplicates"