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
vmkumar1
Frequent Visitor

IF logical Fucntion

Hi All,

 

I am new to DAX coding. Could you please help me in understanding below function? Thanks .

 

I am using a IF(OR( Column1 = "X","Y","A","B")) logic in excel to compare my column1 values.

When I tried the same logic in PowerBi measure, I wont see my column name at all, IF(OR())

Could you please help me by explaining what am I mssing here? Thanks.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

Here is the syntax for IF with multiple values . Hope this helps to you.

 

Column = IF(Detais[Category] IN {"AA", "AB","BA"} , 1,2)
 
Thanks
Raj

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

 

Here is the syntax for IF with multiple values . Hope this helps to you.

 

Column = IF(Detais[Category] IN {"AA", "AB","BA"} , 1,2)
 
Thanks
Raj

Thanks for the reply Rajendran.

When to use a Measure or Conditional Coulumn?

Do u mind helping me to undersatnd when to use Calculate or Filter function?

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.