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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jmccoy
Helper II
Helper II

New Date Based on column in different table

I have a Required delivery date in my Sales table and then a small table that is populated with a lead time from my scheduler. This is in the form of the number of weeks we are currently scheduling before delivery, this can change from week to week. I am wanting to subtract the current lead time from the the Required delivery date provided by the customer, to display per job and show a date the project must be fully released to the plant to hit this date. 

 

The Sales Table has many of rows with all of our promised jobs and details. The lead time table is just one row with current lead time that is updated by the scheduler. This usually ranges from 9-15 week lead times. 

1 ACCEPTED SOLUTION

Hi @Jmccoy ,

 

What is the relationship between two tables, such as if it based on jobid column, we can use the following formula:

 

 

FDRD =
DATEADD (
    Dashboard_Sales2[ReqDel].[Date],
    - CALCULATE (
        SUM ( 'Table 2'[Lead Time] ),
        'Table 2',
        'Table 2'[jobid] in Distinct(Dashboard_Sales2[jobid])
    ),
    DAY
)

 

 

If it doesn't meet your requirement,  Could you please provide a mockup sample based on fake data or describle the fields of each tables and the relations between tables simply? It will be helpful if you can show us the exact expected result based on the tables. Please upload your files to OneDrive For Business and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Jmccoy
Helper II
Helper II

Something like this but in lieu of the - 84 days it would be the lead times in the other column. FDRD = DATEADD(Dashboard_Sales2[ReqDel].[Date], -84,DAY)

Hi @Jmccoy ,

 

What is the relationship between two tables, such as if it based on jobid column, we can use the following formula:

 

 

FDRD =
DATEADD (
    Dashboard_Sales2[ReqDel].[Date],
    - CALCULATE (
        SUM ( 'Table 2'[Lead Time] ),
        'Table 2',
        'Table 2'[jobid] in Distinct(Dashboard_Sales2[jobid])
    ),
    DAY
)

 

 

If it doesn't meet your requirement,  Could you please provide a mockup sample based on fake data or describle the fields of each tables and the relations between tables simply? It will be helpful if you can show us the exact expected result based on the tables. Please upload your files to OneDrive For Business and share the link here.


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors