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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
samc_26
Helper IV
Helper IV

Adding number of days to a date based on another column

Hi, so I have a column with dates and then another coulm with number of days until a service is due on some data and I can't work out how to get the desired output. I don't think I can use the Date add days thing as the number of days change depending on the row. I tried just adding them together but it just gave me errors. 

My data looks like this: 

 

DateDays(Output I'm hoping for)
01/01/253031/01/25
01/02/252526/02/25

 

If anyone can advise I would be very grateful! Thank you 

1 ACCEPTED SOLUTION
pankajnamekar25
Super User
Super User

Hello @samc_26 

You can create a calculated column

 

Service Due Date =

    'Table'[Date] + 'Table'[Days]

 

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

View solution in original post

3 REPLIES 3
pankajnamekar25
Super User
Super User

Hello @samc_26 

You can create a calculated column

 

Service Due Date =

    'Table'[Date] + 'Table'[Days]

 

 

Thanks,
 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Brill thank you, I was doing that sum but in power query which wasn't working, this worked great! 

Vijay_Chethan
Super User
Super User

Hello samc_26,
can you explain what exactly do you mean by "giving error",because im sure we could use dax calculated columns to get your desired output

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.