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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Seth4040
Regular Visitor

DATEDIFF and IF

I am trying to add 7 days to the "Task Completion Date" if the "Task Status" is = CONCOMP which gives me the "GF Job Card Due Date" column.  Thank you.

 

GF Job Card Due Date = IF(DATEDIFF(

 

Screenshot 2024-06-24 113448.jpg

1 ACCEPTED SOLUTION

Ok got it fixed and attached what I got it to.  Thanks for your help.

 

Screenshot 2024-06-24 123724.jpgScreenshot 2024-06-24 123745.jpg

View solution in original post

3 REPLIES 3
mark_endicott
Super User
Super User

@Seth4040 - Try this as a calculated column:

 

IF( Table[Task Status] = "CONCOMP", SUMX( Table, Table[Task Completion Date] + 7), Table[Task Completion Date])

 

If you only need the values where 7 days have been added then this will work:

 

SUMX( FILTER(Table, Table[Task Status] = "CONCOMP"), Table[Task Completion Date] + 7)

 

The above can also be used in a measure. 

 

If either of these work, please accept this as the solution.  

This kind of worked but showing the date as 12/31/9999 for some reason. I did change the first one just a little and got what I am showing.  The second one had the same outcome exect dates in all the fields even when not = to CONCOMP  and again the dates were 12/31/9999

 

Screenshot 2024-06-24 122921.jpg

 

 

Ok got it fixed and attached what I got it to.  Thanks for your help.

 

Screenshot 2024-06-24 123724.jpgScreenshot 2024-06-24 123745.jpg

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.