Forum Discussion
Date Issue
- 17 days ago
The error occurs because you’re creating a measure, but [Created Date] and [Resolved Date] contain multiple rows. DAX needs an aggregation or a single selected value.
maybe you can try this
Resolution Days =
VAR CreatedDate =
SELECTEDVALUE('June 1 to Aug 19'[Created Date])
VAR ResolvedDate =
SELECTEDVALUE('June 1 to Aug 19'[Resolved Date])
RETURN
IF(
NOT ISBLANK(CreatedDate) &&
NOT ISBLANK(ResolvedDate),
DATEDIFF(CreatedDate, ResolvedDate, DAY)
)
if this does not work, pls provide your sample data and expected output.
If you want resolution days per ticket, make it a calculated column instead:
Resolution Days =DATEDIFF('June 1 to Aug 19'[Created Date],'June 1 to Aug 19'[Resolved Date],DAY)
- v-aatheeque10 days ago
Community Support
Hi njsimmons82
Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.