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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jaryszek
Post Patron
Post Patron

DAX to use LIKE statement

Hi Guys,

 

i have dax like here:

Day 9 = 
    CALCULATE(
        AVERAGEX(
            VALUES(
                Orders[OrderID]),
                [Total sales]
        ),
    FILTER(
        Customers,
        Customers[CompanyName] = "Romero y Tomillo"
    )
    )

 

and what i want to use is to get Customers[CompanyName] LIKE "Romero*",
how to do this in DAX?

Best,
Jacek

1 ACCEPTED SOLUTION
shephaliB
Advocate II
Advocate II

Hi Jacek,

Try using below as a filter condition:

CONTAINSSTRING('Customers'[CompanyName], "Romero")

 

Thanks,

Shephali

View solution in original post

2 REPLIES 2
shephaliB
Advocate II
Advocate II

Hi Jacek,

Try using below as a filter condition:

CONTAINSSTRING('Customers'[CompanyName], "Romero")

 

Thanks,

Shephali

oo great! 

 

thank you!

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

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