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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create Custom Column based on specific combinations of values from another column

Hello, How can a new Task Status column be created based on the table and criteria below:

TaskRegionCountryTask StatusNEW DESIRED COLUMN
1EMEAFinlandCompleteIn Progress
1EMEASwedenIssuesIn Progress
1

EMEA

GermanyNot StartedIn Progress
2EMEAFinlandCompleteIn Progress
2EMEASwedenIssuesIn Progress
2EMEAGermanyNot StartedIn Progress
2EMEASpainCompleteCompleted
3EMEASwedenCompleteCompleted
3EMEASpainCompleteCompleted


I need to create a new coulmn to show me for each TASK:
If Task Status column contains "Not Started", "Issues" & "Completed" then = "In Progress"
If Task Status column contains "Not Started" & "Issues" then = "In Progress"
If Task Status column contains "Not Started" & "Completed" then = "In Progress"
If Task Status column contains "Issues" & "Completed" then = "In Progress"
If Task Status column contains "Not Started" ONLY then = "Not Started"
If Task Status column contains "Issues" ONLY then = "Issues"
If Task Status column contains "Completed" ONLY then = "Completed"

End Result needed to Display:

TaskRegionNew Task Status
1EMEAIn Progress
2EMEAIn Progress
3EMEACompleted
 
1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1655950898654.png

= Table.Group(Source,{"Task","Region"},{"Task Status",each let a=List.Distinct([Task Status]) in if a{1}?=null then a{0} else "In Progress"})

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hey, you can group by task column first, then use conditional column to have a new column "task status". 

wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1655950898654.png

= Table.Group(Source,{"Task","Region"},{"Task Status",each let a=List.Distinct([Task Status]) in if a{1}?=null then a{0} else "In Progress"})

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors