Forum Discussion

graefs's avatar
graefs
Frequent Visitor
1 year ago
Solved

Custom Column for Unique ID

I am looking to create a column that categorizes each group based on the result of multiple columns.    A: IPC = No; Client = A B: IPC = No;  Client = B Mixed: IPC = No; Client = A and B IPC: IP...
  • ryan_mayu's avatar
    1 year ago

    graefs 

    you can try this

     

    Column =
    var _ipc=maxx(FILTER('Table','Table'[Group]=EARLIER('Table'[Group])&&'Table'[IPC]="Yes"),'Table'[IPC])
    var _count =CALCULATE(DISTINCTCOUNT('Table'[Client]),ALLEXCEPT('Table','Table'[Group]))
    return if(_ipc="Yes" && _count>1,"IPC Mixed",if(_ipc="" && _count>1,"Mixed",'Table'[Client]))