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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

What is the easiest way to ADD a specific number of days to the Date?

Hi colleagues!

I have to calculated deadlines: I have a shipment date in one table and promised delivery time in days based on carrier and the delivery location in another table.

If Carrier is 1 then we have to add his promised maximum delivery time (ZIPCodes[CarKPI]) to calculate Deadline. I've created such formula:

Delivery Deadline  =
if
(
[Carrier]="1";
DATEADD
(
SENDING[Shipping Date];
related(ZIPCodes[CarKPI]);
DAY
);
SENDING[Shipping Date]
)
But it doesn't work might be because dateadd work only with stable timeperiod to add. How can I easily solve this task?
1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous 
Please add .[Date] after shipment date 

Delivery Deadline  =
if
(
[Carrier]="1";
DATEADD
(
SENDING[Shipping Date].[Date];
related(ZIPCodes[CarKPI]);
DAY
);
SENDING[Shipping Date]
)
If it doesn't work please share some sample data after masking.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Anonymous 
Please add .[Date] after shipment date 

Delivery Deadline  =
if
(
[Carrier]="1";
DATEADD
(
SENDING[Shipping Date].[Date];
related(ZIPCodes[CarKPI]);
DAY
);
SENDING[Shipping Date]
)
If it doesn't work please share some sample data after masking.
Anonymous
Not applicable

vimal_parmal!

Awesome! Surprisingly, it works!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.