Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
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 ID | Staff | Status |
1 | A | Live |
1 | B | Completed |
1 | C | Completed |
2 | D | Completed |
3 | E | Live |
3 | F | Live |
4 | G | Completed |
4 | H | Live |
4 | I | Completed |
4 | J | Live |
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.
Solved! Go to Solution.
@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")
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())
@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")
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |