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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kristofferaabo
Helper IV
Helper IV

Nested IF formula or similar

Hi, I'm working on a column in powerBI that needs to group my 'Status'. The groups should either be open or closed.

I have following stutus' in my "Status" column: Award, Loss, meeting scheduled, rejected offer, rebid

 

Following should return "closed": Award, Loss, rejected offer

Following should return "open": meeting scheduled, rebid

 

Does anybody know how I can make this as a formula to a column, would think its a nsted IF in some way?

Thanks

1 ACCEPTED SOLUTION
BalaVenuGopal
Resolver I
Resolver I

Hi @Kristofferaabo ,

 

once your data is loaded then you create New column as bellow :

 

Status = IF(table[Status] = "Award" || table[Status] = "Loss" ||  table[Status]  = "rejected offer","Closed","Open")

 

Please mark as solution if this resove your issue.

 

 

 

 

View solution in original post

2 REPLIES 2
BalaVenuGopal
Resolver I
Resolver I

Hi @Kristofferaabo ,

 

once your data is loaded then you create New column as bellow :

 

Status = IF(table[Status] = "Award" || table[Status] = "Loss" ||  table[Status]  = "rejected offer","Closed","Open")

 

Please mark as solution if this resove your issue.

 

 

 

 

great stuff, didn't know the " || " ..THANKS

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors