Hi,
I’m trying to build a report in eazybi using jira history due date field
I have the history imported and a field of “issue due date old values” - [Issue].CurrentHierarchyMember.get(‘Due date old values’)
it returns the values like this on the left: (in a comma seperated string/list)
I want to extract the first value (earliest value) so I can build an actual vs planned report
I tried using this measure:
ExtractString(
[Issue].CurrentMember.get(‘Due date old values’),
“(.),.”,
1
)
but it will work only when I have 2 dates, if I have one date or above 2 it won’t return correctly. (see on the above on the right)
when I have one value it won’t return anything at all
do you have a solution for it?
Thanks!
As @Nacho pointed out, I recommend adjusting the JavaScript code. This will order the values during the import, making them readily available after they have already been ordered.
If you wish to still use the existing unordered list, you can use an MDX formula like this:
TimestampToDate(
Min(
Filter(
Descendants([Time].CurrentMember, [Time].[Day]),
AnyDateInPeriod(
[Issue].CurrentMember.get('Due date old values'),
[Time].CurrentMember
)
),
DateToTimestamp(
[Time].CurrentHierarchyMember.StartDate
)
)
)