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
Clark75
New Member

Fill NULL date column with date from another column that share same ticket number

I have the following data

Clark75_0-1680306804981.png

I need the completed date on the same row as the start date where the Completed date is null.

 

Any help will be greatly appreciated.

 

1 ACCEPTED SOLUTION
Clark75
New Member

My final result was to gather the amount of time it took to process a ticket. I ended up doing the following:

BeginDate =

CALCULATE (

    MIN ( Query2[Transaction_Date] ),

    ALLEXCEPT ( Query2, Query2[Wo_Number] )

)

 

*********************************************************************

 

Date_Difference =

DATEDIFF ( [BeginDate], [Completed Date], DAY )

 

View solution in original post

4 REPLIES 4
Clark75
New Member

My final result was to gather the amount of time it took to process a ticket. I ended up doing the following:

BeginDate =

CALCULATE (

    MIN ( Query2[Transaction_Date] ),

    ALLEXCEPT ( Query2, Query2[Wo_Number] )

)

 

*********************************************************************

 

Date_Difference =

DATEDIFF ( [BeginDate], [Completed Date], DAY )

 

FreemanZ
Super User
Super User

hi @Clark75 

try to add a new calculated column like:

 
NewColumn =
IF(
    [start date] <> BLANK(),
    [start date],
    [completed date]
)

That gave me the output of :

Clark75_0-1680308179055.png

I need the Completed date on the same row as the start date. Sorry if I did not communicate that correctly

 

Above is with DAX, or try add a custom column in Power Query Editor like:

column =

if [start date]<>null

then [start date]

else [completed date]

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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