Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Socrates
Frequent 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 IDStaffStatus
1ALive
1BCompleted
1CCompleted
2DCompleted
3ELive
3FLive
4GCompleted
4HLive
4ICompleted
4JLive

 

In the above case, only project 2 is fully completed as all of the rows for its Status are set to 'Completed'

 

I'm looking to add another column which says if a project is fully completed or not but I just can't think of the syntax needed.

Any help would be great. Thank you.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@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")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

You 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())

 

lbendlin_0-1600191633550.png

 

 

Greg_Deckler
Community Champion
Community Champion

@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")


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.