Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Create unique ID

Hi   I have one table DimEmployee with employee data and it contains column named Country . I want to create calculated column to generate unique key for each country. so in below example column li...
  • AnthonyTilley's avatar
    AnthonyTilley
    7 years ago

    Yes just use Rank 

     

    this will give them a unique id based on alphibetial order of country

     

    Column =
    RANKX(Table1,Table1[Country],Table1[Country],ASC,Dense)