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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
josy0244
New Member

DATEDIFF Function: Error between two dates

I am trying to measure how efficient our purchase order process is by getting the difference between the "Date issued to vendor" and "Requested issued date" by the engineer. I am getting the error:

 

"Too few arguments were passed to the DATEDIFF function. The minimum argument count for the function is 3."

 

Also, the date parameters are in Spanish instead of English for some reason. Please see below a snip of the table column.

josy0244_0-1684419550873.png

 

 

1 ACCEPTED SOLUTION
o0llied
Frequent Visitor

Hello josy!

 

You need to define interval after defining the two dates. So it will know what value it should return. 

For example, if you need the difference between the two dates in number of months, add MONTHS:

 

 

Day to issue =
DATEDIFF('table'[Date issued to vendor], 'table'[Requiested issued date].[Día], MONTH)

 

 

 

For more info, please see: https://learn.microsoft.com/en-us/dax/datediff-function-dax

If this fixed your issue, please give a thumbs up and mark this response as the solution.

 

Have a nice day!

View solution in original post

2 REPLIES 2
josy0244
New Member

 

Thank you so much. I used the below formula and it worked.

o0llied
Frequent Visitor

Hello josy!

 

You need to define interval after defining the two dates. So it will know what value it should return. 

For example, if you need the difference between the two dates in number of months, add MONTHS:

 

 

Day to issue =
DATEDIFF('table'[Date issued to vendor], 'table'[Requiested issued date].[Día], MONTH)

 

 

 

For more info, please see: https://learn.microsoft.com/en-us/dax/datediff-function-dax

If this fixed your issue, please give a thumbs up and mark this response as the solution.

 

Have a nice day!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.