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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Create a Measure: Where a value equals one value or another value

I'm trying to build upon an existing measure I've already created.

 

Here is my current formula:

Cervical Cancer Participating 1 = (CALCULATE(DISTINCTCOUNT('Claim Data Pull'[Member ID]), FILTER('Claim Data Pull','Claim Data Pull'[Gender]="Female"),'Claim Data Pull'[Age]>=21,'Claim Data Pull'[Age]<=65,'claim data pull'[Dx 1]="Z01.411"))
 
My problem is, I'd like to build on to this formula where 'Claim Data Pull'[Dx1] can equal any of the following results:
Z01.411 or Z00.01 or Z11.51 or Z00.00 or Z12.4 or Z01.419
 
My problem is, I don't believe there is OR functionality within DAX.  I've tried just adding an additional (Calculate(DistinctCount( ... with each instance ... but that creates duplicates so that isn't an option either.
 
Any ideas?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, Try below measure

 

Cervical Cancer Participating 1 = (CALCULATE(DISTINCTCOUNT('Claim Data Pull'[Member ID]), FILTER('Claim Data Pull','Claim Data Pull'[Gender]="Female"),'Claim Data Pull'[Age]>=21,'Claim Data Pull'[Age]<=65,'claim data pull'[Dx 1] IN {"Z01.411", "Z00.01","Z11.51","Z00.00","Z12.4","Z01.419"}))

 

Did I answer your question? Mark my answer as a solution!

View solution in original post

2 REPLIES 2
vanessafvg
Super User
Super User

or is || in dax. 

https://dax.guide/op/or/

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi, Try below measure

 

Cervical Cancer Participating 1 = (CALCULATE(DISTINCTCOUNT('Claim Data Pull'[Member ID]), FILTER('Claim Data Pull','Claim Data Pull'[Gender]="Female"),'Claim Data Pull'[Age]>=21,'Claim Data Pull'[Age]<=65,'claim data pull'[Dx 1] IN {"Z01.411", "Z00.01","Z11.51","Z00.00","Z12.4","Z01.419"}))

 

Did I answer your question? Mark my answer as a solution!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.