Forum Discussion
Anonymous
8 years agoNot applicable
Datediff not working on all rows
I am calculating the number of months between two dates on a table of around 100,000 rows. I'm using this forumula; Term.Months = DATEDIFF(Elements[Start Date],dateadd(Elements[End Date],1,day),M...
Anonymous
8 years agoNot applicable
The image shows 3 columns, start.date, end.date and term; term is the column that is blank (the issue I'm experiencing). The datediff calc uses the first two columns, to create the 3rd.
shebr
Resolver III
8 years agoHi Anonymous
Apologies I saw some items were cropped and assumed that was part of the column.
Anyhow, fw things to check. Your PBI Desktop version, ensure you are up to date.
Check your region settings in the Options section of your PBI desktop application. It could be that your dates are being determined as dd/mm/yyyy rather than mm/dd/yyyy. Also try changing the columns to a short date format (for testing purposes) to see if that helps.
Let me know how you get on.
Thanks
shebr