Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Generate the same reference numbers for reports submitted by a company in the same day

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

1 REPLY 1
amitchandak
Super User
Super User

@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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.