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

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.

Reply
Anonymous
Not applicable

Filtering double IDs

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

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

CALCULATE(COUNT(); ID = 3 || ID = 25) 

If I answered your question, please mark my post as solution, this will also help others.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

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


View solution in original post

1 REPLY 1
mwegener
Most Valuable Professional
Most Valuable Professional

CALCULATE(COUNT(); ID = 3 || ID = 25) 

If I answered your question, please mark my post as solution, this will also help others.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

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


Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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