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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to use OR operation between filters in Power BI

2018-11-13_10-40-52.png

 

Hello, 

 

We are in the proces of migrating our reports from Oracle BI to Power BI and i'm trying to apply a filter that looks similar to the image above. Right now Power BI filters only allow And operation when i add two filters. Is there a way we can add OR operation to get data between either of two different date fields.

 

Thank you!!

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

Hi Sharathp,

 

You can use OR logic in your dax measure, you can also refer to this blog: https://www.sqlbi.com/articles/using-or-conditions-between-slicers-in-dax/.

 

Regards,

Jimmy Tao

Anonymous
Not applicable

Thank you @Anonymous and @v-yuta-msft fro the prompt reply, i'm trying to implement this to some text data with no measures, i tried to resolve this using an example mentioned in the weblink  https://stackoverflow.com/questions/49738761/how-to-set-or-logic-between-two-slicers-for-the-attributes-from-same-dataset. i'm able to replicate the solution with same data but not with my data. Attached are two pbix files with sample data from above example and my data.

 

Working solution with sample data: https://drive.google.com/open?id=1v9FEHll5eubLsE3mTuG_b-PbV5SMLZyx

 

My sample data: https://drive.google.com/open?id=1kYbaMe752VUwI9u-fj12Z2Pe_lp_NDNo

 

 

Sharath

 

 

 

Anonymous
Not applicable

@marcorusso has written a blog article on his site www.sqlbi.com

 

You can read about his solution here: Using OR Conditions in Slicers in DAX

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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