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

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.

Reply
AW1976NOVA
Post Patron
Post Patron

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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