Forum Discussion

rajeshchawla's avatar
rajeshchawla
Helper I
5 years ago
Solved

Using TransformColumns with newGuid for each row

Hi folks,   I'm working to replace row values in a column if it's null to a new GUID. What I have places the same GUID for each row.    #"FixMyCoolColumn" = Table.TransformColumns (#"Removed Blan...
  • PC2790's avatar
    5 years ago

    It is a know issue with Text.NewGuid().

    Try a workaround like:

    = Table.TransformColumns(#"Removed Blank Rows",{"CoolColumn", each if _=null then try error Text.NewGuid() otherwise Text.NewGuid()  else _})