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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
juhoneyighot
Helper III
Helper III

Need help converting this Excel Formula to DAX language

I need help for this Excel Formula to be converted to DAX

1. =IF(ColumnA<>"","Y","N")

 

2. =IF(OR(ColumnD="00Test 00TestLast",ColumnD="00test newcon"),"Y","N")

 

Thank you.

1 ACCEPTED SOLUTION

Hello! @Dangar332 

the formula works in a "new column' not in a 'measure'.
It is solved already.

Thanks

View solution in original post

4 REPLIES 4
Dangar332
Super User
Super User

hi, @juhoneyighot 

 

try below code 

 

measure1 =
   if('yourtablename'[columnname that you compare(columnA)]<>"","y","n")

measure 2 =
   if('yourtablename'[columnname where you compare(columnD)]="00Test 00TestLast" ||
    'yourtablename'[columnname where you compare(columnD)]="00test newcon","y","n")

Hello! @Dangar332 

the formula works in a "new column' not in a 'measure'.
It is solved already.

Thanks

Hi, @juhoneyighot 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to give kudos.

juhoneyighot_0-1698419429847.png

Hello! This is the error when I'm trying to enter the formula

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.