Forum Discussion
krdavies
3 months agoHelper I
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...
- 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!
pankajnamekar25
3 months agoSuper User
Hello
Use Rankx
Date ID = RANKX( ALL('Table'[Date]), 'Table'[Date], , ASC, Dense )
If my response helped you, please consider clicking
Accept as Solution ✅ and giving it a Like 👍 – it helps others in the community too.
Thanks,
Connect with me on:
LinkedIn |
Data With Pankaj - YouTube
krdavies
3 months agoHelper I
pankajnamekar25 is there a way to do a similar function in Power Query? I need to use the column to perform an append query afterwards.