Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
 
					
				
		
Hi
I'd like to have a calculated column that generates unique reference numbers for reports submitted by companies with the following requirement.
1. When a company submitted more than one reports on the same day, the report reference would be the same. 
For additional context, I have unique reference numbers for each reports which I use for relationships. 
 Thank you in advance for any help you can provide. 
cheers
@Anonymous , Create a rank column on truncated date column
new columns =
Date = datevalue([Datetime])
Rank = rankx(Table, [Date],,asc,dense)
or
Rank = rankx(filter(Table, [Company] = earlier([Company]) ) , [Date],,asc,dense)
You can rank in power query
Rank in Power Query? Power Query Table.AddRankColumn : https://youtu.be/bnB1rgAhZaw
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 9 | |
| 8 |