MicrosoftDocs / feedback

📢 docs.microsoft.com site feedback
https://learn.microsoft.com
Creative Commons Attribution 4.0 International
239 stars 160 forks source link

Code Example is incorrect for DATEDIFF function in DAX #2093

Open chrisadragna opened 5 years ago

chrisadragna commented 5 years ago

Link to article: https://docs.microsoft.com/en-us/dax/datediff-function-dax

Problem: The example code is incorrect. A parenthesis is in the wrong place. There are 8 examples, and each one of them has the same mistake.

Example: DATEDIFF(MIN( Calendar[Date] ), MAX( Calendar[Date], second ) )

Should be corrected to: DATEDIFF(MIN( Calendar[Date] ), MAX( Calendar[Date]), second )

welcome[bot] commented 5 years ago

Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).

ghost commented 4 years ago

@chrisadragna - Thanks for pointing this out. Probably been that way for ten years. It's been updated.

please-close

ghost commented 4 years ago

please-close