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

Problem about and/or logic in Power BI

In our products' data we have two kinds of versions. Version_Number and Terget version. In our previous query in other tool these two fields are or logic. But when I edit query in Power BI desktop it will became and logic. Any suggestion for this issue? Thanks in advance.

1 ACCEPTED SOLUTION

I found a advanced way to achieve or logic in Power BI Desktop. Using Advanced Options to add SQL Statement before loading data. Below is my SQL Statement. Thank you anyway.

 

select * from [Table] where version_number ='V10.0' or Target_Rlease ='V10.0'

View solution in original post

2 REPLIES 2
BhaveshPatel
Community Champion
Community Champion

In that case, You can build two queries and append one on another. This can satisfy your OR requirement. Unless there is no specific terms to filter, it will use only AND logic in the query.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

I found a advanced way to achieve or logic in Power BI Desktop. Using Advanced Options to add SQL Statement before loading data. Below is my SQL Statement. Thank you anyway.

 

select * from [Table] where version_number ='V10.0' or Target_Rlease ='V10.0'

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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