Forum Discussion
Socrates
6 years agoFrequent Visitor
Set overall status if all tasks completed
I have a table where multiple people could be assigned to one project, but even if one person's part is complete the whole project is still live until everyone is done. For instance: Project I...
- 6 years ago
Socrates - Should be something like:
Column = VAR __Table = SUMMARIZE(FILTER('Table',[ProjectID]=EARLIER([ProjectID])),[Status]) RETURN IF(MAXX(__Table,[Status])="Completed" && COUNTROWS(__Table)=1,"Completed","Live")
lbendlin
Super User
6 years agoYou asked for a calculated column. A measure would be slightly different.
Completed =
var p = Projects[Project ID]
var s = CALCULATETABLE(VALUES(Projects[Status]),ALL(Projects),Projects[Project ID]=p)
return switch(TRUE(),countrows(s)>1,FALSE(),s={"Completed"},TRUE(),FALSE())