Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

If same column has multiple values in another column

Hello, I have Act ID number and Repair type. Same Act ID number can have multiple Repair types (total of 9 repair types exists). Usually it has same repair types (its a train maintenance and Act ID...
  • amitchandak's avatar
    amitchandak
    5 years ago

    Anonymous , You can create a new column that can act as flag to filter

    if(calculate(distinctcount(Table[repair type]), filter(table, [Act ID] =earlier([Act id])))=1, true(), false())

     

    or a measure like

    sumx(filter(summarize(Table, Table[Act ID], "_1", distinctcount(Table[repair type]), "_2", count(Table[Act ID])), [_1] =1),[_2])