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
DorienM
Helper II
Helper II

Consolidating two nullable date columns into a single column

I have two date columns that look like this:

EstimatedCloseDateActualCloseDate
4/19/20204/20/2020
null6/11/2020
7/18/2020null
nullnull

I would like to create a third column either in the query or afterwards called ActionableCloseDate which prefers the ActualCloseDate but uses the EstimatedCloseDate if the ActualCloseDate is null. Ideally it would look like this afterwards:

EstimatedCloseDateActualCloseDateActionableCloseDate
4/19/20204/20/20204/20/2020
null6/11/20206/11/2020
7/18/2020null7/18/2020
nullnullnull

I am a bit of a PowerBI noob so theres a good chance this is pretty simple but I have no idea where to start. Any help would be greatly appreciated.

1 ACCEPTED SOLUTION
Tahreem24
Super User
Super User

@DorienM ,

Create COlumn like below:

Third COlumn = IF(Table[ActualCLoseDate]=BLANK(),Table[EstimatedClosedDate],Table[ActualClosedDate])

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

3 REPLIES 3
Tahreem24
Super User
Super User

@DorienM ,

Create COlumn like below:

Third COlumn = IF(Table[ActualCLoseDate]=BLANK(),Table[EstimatedClosedDate],Table[ActualClosedDate])

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Wow that is way simplier than I thought it would be. Thanks it is working great.

@DorienM ,

Gald that I helped you!

Good Luck!

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

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.