This is the code I'm using for calculating the median
Median(
Filter(
NonEmptyCrossJoin(
Descendants([Issue].CurrentMember, [Issue].[Issue]), [Measures].DefaultMember),
[Measures].[Issues resolved] > 0
),
DateDiffHours([Issue].get('Created at'),
[Issue].get('Resolved at'))
)I'm looking to use a custom date field I have instead of the "Resolved" field. However, 2 issues with that:
- The custom field is a date field (doesn't save the hour).
- How do I change this piece of code to make this new field replace the system one.
Thanks