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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors