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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
plunkett40
New Member

New Column With Measure

I want create a new column measure with the following.  If Task Type is "Coax Splicing" and Task Status is "Complete" then put the Task Status Timestamp data in this column which will be Completion Date.

 

Screenshot 2025-02-19 at 9.09.27 AM.png

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @plunkett40 ,

 

Here’s the DAX formula to create a calculated column:

Completion Date = 
IF(
    'YourTable'[Task Type] = "Coax Splicing" && 'YourTable'[Task Status] = "Completed",
    'YourTable'[Task Status Timestamp],
    BLANK()
)

This formula evaluates each row in the table. If the Task Type is "Coax Splicing" and the Task Status is "Completed", it returns the corresponding Task Status Timestamp as the Completion Date. Otherwise, it returns a blank value.

Since this is a calculated column, it will be precomputed and stored in the dataset, making it useful for table visuals, filtering, and sorting. Let me know if you need any refinements.

 

Best regards,

 

View solution in original post

3 REPLIES 3
DataNinja777
Super User
Super User

Hi @plunkett40 ,

 

Here’s the DAX formula to create a calculated column:

Completion Date = 
IF(
    'YourTable'[Task Type] = "Coax Splicing" && 'YourTable'[Task Status] = "Completed",
    'YourTable'[Task Status Timestamp],
    BLANK()
)

This formula evaluates each row in the table. If the Task Type is "Coax Splicing" and the Task Status is "Completed", it returns the corresponding Task Status Timestamp as the Completion Date. Otherwise, it returns a blank value.

Since this is a calculated column, it will be precomputed and stored in the dataset, making it useful for table visuals, filtering, and sorting. Let me know if you need any refinements.

 

Best regards,

 

Fixed a couple of things but not pulling in Task Status Timestamp into new column Buford Completion Date just shows BLANK.  

Screenshot 2025-02-19 at 10.07.19 AM.png

Did I do something wrong?  Thanks 

 

Buford Completion Date 1 = VAR TaskComplete = SELECTEDVALUE('PowerBI_NE_SE_Task_Detail Repor'[Task Status])="Complete" & SELECTEDVALUE('PowerBI_NE_SE_Task_Detail Repor'[Task Type])="Coax Splicing" RETURN IF(TaskComplete, SELECTEDVALUE('PowerBI_NE_SE_Task_Detail Repor'[Task Status Timestamp]), BLANK())
 
Screenshot 2025-02-19 at 9.58.48 AM.png

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors