Forum Discussion
graefs
1 year agoFrequent Visitor
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...
- 1 year ago
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]))
ryan_mayu
1 year agoSuper User
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]))