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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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