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 Anonymous ,
Please try creating a calculated column on your table as shown below :
This should give you the desired result.
Kind regards,
Rohit
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 😊
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 😎
- rohit_singh4 years ago
Solution Sage
Hi speedramps ,
Thanks for your feedback. I have created a calculated column and not a measure so it will work as expected.