Forum Discussion

Nun's avatar
Nun
Resolver I
5 years ago
Solved

New column based on distinct value

Hello, I have the following problem. I have a table with two columns, the first contains names, the second ID. Col1 Col2 Abc    1 Abc    2   Cde   1 Efg     6 Hxx   7 If the col1 has more tha...
  • Greg_Deckler's avatar
    5 years ago

    Nun - OK, not to steal Fowmy 's thunder here by maybe:

    Column =
      VAR __Table = SUMMARIZE(FILTER('Table',[Col1]=EARLIER([Col1])),[Col2])
    RETURN
      IF(COUNTROWS(__Table)>1,[Col1]&[Col2],[Col1])