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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Assigning a value with duplicated data in table

I am trying to assign a value to duplicated values so I can visualize it without the duplicates. 

- I have added an index column that assigns a value to each unique HCN but next step i'm hoping to assign based on the reg date as well, so it will take the reg date into account

 

The current vs ideal state is shown below: 

 

example.PNG

 

Any help or insight is appreciated! 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,
You can try to create a new column

Index = 
RANKX(
    'Table',
    'Table'[HCN] * 100000 + DATEDIFF(DATE(1900, 1, 1), 'Table'[Reg Date], DAY),
    ,
    ASC,
    DENSE
)

Final output

vheqmsft_0-1730252310121.png

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

lbendlin
Super User
Super User

Sounds good.  What have you tried and where are you stuck?

 

Can you provide sample data in a usable format, not as a screenshot?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.