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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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