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
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
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.

Top Solution Authors