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

Direct Query - OR() function don't exist

Hello,

 

I'm trying to do a simple OR() function using DIrect Query mode but it's not their. I found on the web that if I select "Allow unrestricted measures in DirectQuery mode." in Options -> Direct Query, this should resolve my problem, but this check box don't exist anymore.

 

Any ideas how to workaround this issue?

 

 

1 REPLY 1
TomMartens
Super User
Super User

Hey, 

 

you can use this

|| (two pipe signs) instead of OR and

&& instead of AND

This measure

Measure = 
CALCULATE(
    SUM('Table1'[value])
    , FILTER(
        'Table1'
        , 'Table1'[color] = "red" || 'Table1'[color] = "yellow"
    )
)

creates this:

image.png

Hopefully this is what you are looking for.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.