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
Anonymous
Not applicable

IF condition

Hi,

 

I'm trying use an "if condition" to get an outcome. Here's the formula I'm using:

 

Column = IF(OR('All Incidents'[Ticket Type]="Closed", OR('All Incidents'[Ticket Type]="Resolved", 'All Incidents'[Ticket Type]="Resolved - Self Heal")), "Resolved","Active")

 

I need to get "Resolved", if any of the three types match the column else I should be getting "Active". When I input this formula, I was getting the outcome as "Active". Any help on this would be appreciated.

 

Regards,

Mahesh

1 ACCEPTED SOLUTION
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try this as a new column 

 

Column = IF('All Incidents'[Ticket Type] IN {"Closed","Resolved","Resolved - Self Heal"},"Resolved","Active")




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




View solution in original post

5 REPLIES 5
PattemManohar
Community Champion
Community Champion

@Anonymous  Please try this as a new column 

 

Column = IF('All Incidents'[Ticket Type] IN {"Closed","Resolved","Resolved - Self Heal"},"Resolved","Active")




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

@PattemManohar It's working now. Thank you, Manohar!!!

Anonymous
Not applicable

@PattemManohar Thanks for the prompt response. However, I'm still getting the same outcome as "Active" in the results. Is there any other way to put this?

@Anonymous Please try checking the distinct values of that field by using table visual. Not sure, you have blanks as well in the data...




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Anonymous
Not applicable

@PattemManohar There're no blanks in the column that I'm trying to map.

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.