Forum Discussion

Netrelemo's avatar
Netrelemo
Helper IV
4 years ago

How to generate GUID for each row?

This command seems to create the exact same GUID for each row in the table. 

 

= Table.AddColumn(#"Reordered Columns", "Custom", each Text.NewGuid())

 

 

How do I make a unique GUID for each row? 

1 Reply

  • HotChilli's avatar
    HotChilli
    Community Champion

    I think you just put something like this in the Add Column Box

    try Text.NewGuid() otherwise 0