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.
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!!
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
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
@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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
100 | |
80 | |
64 | |
57 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |