Forum Discussion

krdavies's avatar
krdavies
Helper I
3 months ago
Solved

Calculated column to assign numeric code to dates

Hello,    I have a table with data tracking instances of clients contacting a support desk. My table has an instance id that is the unique identifier for each call, then the date of the call and th...
  • krdavies's avatar
    3 months ago

    Hi all, thank you for your input but it turns out there was actually a very easy way to do this in Power Query. Steps below: 

     

    1. Use the group by function on the date column, setting the operation to "all rows", making a nested table for each date. 

    2. Add an index column (I used the custom starting point of 99001 and incremented at 1)

    3. Expand the nested tables back out. 

     

    Each row now has a unique identifier based on its date!