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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX Syntax to fix

Experts, someone pls help me to fix the below DAX which is erroring out.

 

BalaKiranM_0-1658281489991.png

 

Thanks,

Bala

5 REPLIES 5
Anonymous
Not applicable

Thanks Amit for your quick response, Not able to the .pbix file for your reference. Please help me to fix the same with Syntax in the below for creating the column.

 

x Match - dp = IF((SEARCH("pass", Query1[Complaint Notes],,0)>0) ||
SEARCH("dp", Query1[Complaint Notes],,0)>0 ||
Query1[Complaint Amount]=75.12 &&
SEARCH("sdp", Query1[Complaint Notes],,0)=0, "dp", BLANK())

@Anonymous try this one sec:

x Match - dp = IF((SEARCH("pass"Query1[Complaint Notes],,0)>0) ||
SEARCH("dp"Query1[Complaint Notes],,0)>0 ||
Query1[Complaint Amount]=75.12 &&
SEARCH("sdp"Query1[Complaint Notes],,0)=0"dp", "")


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png


Full-Logo11.png

SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Showcase Report – Contoso By SpartaBI

Anonymous
Not applicable

Thanks for your quick reply, Tried creating the same in new column but still it trows the error. pls help.

Should I create the column or Measure, If Measure How I can convert the text column it will consider?

BalaKiranM_0-1658316820326.png

 

Anonymous
Not applicable

Hi @Anonymous ,

 

The formula should be a calculated column and there should be no problem with the formula itself.

 

Please check these two columns for empty strings (""), you can replace and delete these values in Power Query.

Or you can check them and then execute the formula:

x Match - dp1 = 
IF (
    (
        NOT (
            'Query1'[Complaint Notes] = BLANK ()
                || 'Query1'[Complaint Notes] = ""
        )
    )
        && ( SEARCH ( "pass", Query1[Complaint Notes],, 0 ) > 0 )
        || SEARCH ( "dp", Query1[Complaint Notes],, 0 ) > 0
        || Query1[Complaint Amount] = 75.12
            && SEARCH ( "sdp", Query1[Complaint Notes],, 0 ) = 0,
    "dp",
    BLANK()
)

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

amitchandak
Super User
Super User

@Anonymous , seems fine in the screenshot. Can you share the formula in text format to check


Can you share a sample pbix after removing sensitive data.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.