Forum Discussion
PowerBI Datediff
- 1 year ago
Because you are creating this as a Measure and not as a Calculated Column, you may not get the right behavior.
What you probably want to do is to create the formula as a calculated column, or use a Measure that is like:
AVERAGEX(YourTable, DATEDIFF(YourTableColumn1, YourTableColumn2, DAY))
If this works for you, kindly mark as answer to make it easier for anyone with similar issues to find the solution.
Because you are creating this as a Measure and not as a Calculated Column, you may not get the right behavior.
What you probably want to do is to create the formula as a calculated column, or use a Measure that is like:
AVERAGEX(YourTable, DATEDIFF(YourTableColumn1, YourTableColumn2, DAY))
If this works for you, kindly mark as answer to make it easier for anyone with similar issues to find the solution.