Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hey, greetings all!
I have this measure which is used the CALCULATE function. In FILTER params, I have filtered ID = 3, but also I need to filter ID = 25 using OR operator. I have tried adding one more param like CALCULATE(COUNT(); ID = 3; ID = 25) but it doesn't work since I think the DAX understands as an AND operator. How can I filter both 3 and 25 IDs in the same CALCULATE function, like using IN SQL (ID in (3, 25)) operator?
Grateful
Solved! Go to Solution.
CALCULATE(COUNT(); ID = 3 || ID = 25)
If I answered your question, please mark my post as solution, this will also help others.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
CALCULATE(COUNT(); ID = 3 || ID = 25)
If I answered your question, please mark my post as solution, this will also help others.
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
77 | |
73 | |
71 | |
45 | |
42 |
User | Count |
---|---|
48 | |
47 | |
29 | |
28 | |
28 |