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
jos818
Frequent Visitor

segmentation cohorts

Hi, below table shows a patients table with either 0 or 1 across each of a long term health condition. (Assume 1 = diagnosed with the condition, 0 = not diagnosed)

I need to create a calculated column (returning either Y/N or 1/0 to flag the following criteria);

Any patient who only has 2 or more of the 3 conditions: QoF Depression, QoF SMI and QoF Dementia without any of the other (physical) conditions.

 

image.JPG

 

can you assist?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@jos818 , You need to have column like , Assuming all are column

 

if( ([QoF Depression]+ [QoF SMI] +[QoF Dementia]) >=2 && ([QoF Epilese]+ [QoF Cancer] +[QoF Hart Failure])  =0,1,0) 

 

In part two in bold add all the illnesses you want other the first three

 

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@jos818 , You need to have column like , Assuming all are column

 

if( ([QoF Depression]+ [QoF SMI] +[QoF Dementia]) >=2 && ([QoF Epilese]+ [QoF Cancer] +[QoF Hart Failure])  =0,1,0) 

 

In part two in bold add all the illnesses you want other the first three

 

 

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.