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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.