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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MW_TSC
New Member

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
New Member

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors