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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
MW_TSC
Frequent Visitor

Calculating Overdue Dates based on a Column Value

Hi!

I am trying to create a dashboard for different visuals around customer payments - this visual is specifically for whether or not a payment is overdue, however there are different variables based on domestic and commercial customers.

 

Commercial customers have 30 days after the invoice date before payment is due

Domestic customers have 14 days after the invoice date before payment is due

 

I have got to this stage in my formula creation where no syntax erros have been detected, however the column is still returning "Error" down all lines.

 

Please can anyone help? Screenshot below:

 

MW_TSC_0-1710417701283.png

 

MW_TSC_1-1710417730404.png

 

 

 

1 ACCEPTED SOLUTION
m_dekorte
Super User
Super User

Hi @MW_TSC,

 

You can't add numbers and dates, these are two different types of values

Use the Date.AddDays function instead.

 

To illustrate:
Date.AddDays( [Invoice Date], 30)

View solution in original post

2 REPLIES 2
MW_TSC
Frequent Visitor

That's great, thankyou!

m_dekorte
Super User
Super User

Hi @MW_TSC,

 

You can't add numbers and dates, these are two different types of values

Use the Date.AddDays function instead.

 

To illustrate:
Date.AddDays( [Invoice Date], 30)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.