Forum Discussion
Jigar1276
Helper I
4 years agoAdd new column to show unique counts
Hi, I have following sample table "ProjectTracking" in which I am trying to add the new column which is in red box: New column named "Single or Multiple" should show if Assignee is working on...
- Anonymous4 years ago
Jigar1276 Try this:
NewColumn=var CurrAssignee='table'[Assignee]
var CountProject=COUNTROWS(SUMMARIZE(FILTER('table','table'[Assignee]=CurrAssignee),'table'[Project Name]))
return IF(CountProject=1,"Single Project","Multiple Projects")
Anonymous
4 years agoNot applicable
Jigar1276 Try this:
NewColumn=var CurrAssignee='table'[Assignee]
var CountProject=COUNTROWS(SUMMARIZE(FILTER('table','table'[Assignee]=CurrAssignee),'table'[Project Name]))
return IF(CountProject=1,"Single Project","Multiple Projects")
Jigar1276
Helper I
4 years agoBrilliant. This worked as a charm.