Forum Discussion
Calculate days between dates in different tables
- 4 years ago
Hi rohit_singh
Thanks for your help, but please check your solution suggetion .....
var _datediff = DATEDIFF('DatesBetween'[CREATED_ON],'DatesBetween'[PROJ_ST_DT],DAY)
Wont the DatesBetween'[CREATED_ON] return a buggy table value ? 🤔
You need to wrap it in a SELETEDVALUE, MIN or MAX to get a scalar value.
See method I suggested.
Many thanks 😎
Hi rohit_singh
Thanks for your help, but please check your solution suggetion .....
var _datediff = DATEDIFF('DatesBetween'[CREATED_ON],'DatesBetween'[PROJ_ST_DT],DAY)
Wont the DatesBetween'[CREATED_ON] return a buggy table value ? 🤔
You need to wrap it in a SELETEDVALUE, MIN or MAX to get a scalar value.
See method I suggested.
Many thanks 😎
Hi speedramps ,
Thanks for your feedback. I have created a calculated column and not a measure so it will work as expected.