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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Combine 3 date columns into 1 and perform a count

Hi,

I have a table with three date columns that represent the date a patient consented to a study, if appliable was 'randomised' into the study, and if applicable withdrew from the study. I have created columns to show counts for enrolled, randomised and exits by inserting a '1' if there was a date recorded, and a "0" if there was no date. 

 

SophRow_0-1668822021097.png

What I want is to convert this into 4 columns - there would be one date column which would range from the earliest 'Date of Informed Consent' to the latest of either 'Randomisation Date' or 'Date of study completion/withdrawal'. I'd like to show this by Month and Year only (per the data above). 

 

Next I want to count the number that either enrolled, randomised or exited for that Month and Year. 

 

Please help!

Soph

1 REPLY 1
VijayP
Super User
Super User

@Anonymous 

Try to show the out come how would like to see so that the answer can be quicker




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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