Hi
I have a report that shows the average time between the date the priority was set to Highest and the delivery date.
I would like to propose a filter allowing to choose:
- either Highest priorities
- either High and Highest priorities
- either Medium, High and Highest priorities
This does not work as desired in one case : if an issue is
- created in High on 01 jan 2024,
- then upgraded to highest on 02 jan 2024
- and delivered on 03 jan 2024
Expected :
- with the filter on Highest priorities, I would like the calculated duration to be 1 day (from 02 jan 2024)
- with the filter on the High and Highest priorities, I would like the calculated duration to be 2 days (from 01 jan 2024). However, in this case, it is again the date of 02 jan 2024 which is retained
Is there a way to change my calculated measure [Date transition priorité sélectionnée] so that transitions between two priorities included in my filter are not taken into account?
Here are my calculated measures :
Date transition priorité sélectionnée
TimestampToDate(
(
[Measures].[Transition to last timestamp],
[Transition Field].[Priority],
[Priority].CurrentHierarchyMember,
[Time].CurrentHierarchy.DefaultMember
)
)
Nb tickets livrés
NonZero(
Count(
--set of issues
Filter(
--iterate through individual issues
DescendantsSet([Issue].CurrentMember,[Issue].[Issue]),
--check if first ever status change to Customer Approval was in the selected period
DateInPeriod(
(
[Measures].[Transition to status first date],
[Transition Status].[Recette client],
[Time].CurrentHierarchy.DefaultMember
),
[Time].CurrentHierarchyMember)
)
)
)
Durée avant livraison en recette (en J.O.)
CASE WHEN
(
[Measures].[Nb tickets livrés]
) > 0
THEN
AVG(
Filter(
Descendants([Issue].CurrentMember, [Issue].[Issue]),
(
[Measures].[Nb tickets livrés]
) > 0
),
case WHEN
DateToTimestamp
(
(
[Measures].[Date transition priorité sélectionnée],
[Time].CurrentHierarchy.DefaultMember
)
)
<
DateToTimestamp
(
(
[Measures].[Transition to status first date],
[Transition Status].[Recette client]
)
)
THEN
DateDiffWorkdays(
(
[Measures].[Date transition priorité sélectionnée],
[Time].CurrentHierarchy.DefaultMember
),
(
[Measures].[Transition to status first date],
[Transition Status].[Recette client]
)
)
END
)
END
Here are the calculated members of the Priority dimension
[Piority].[Urgents]
Aggregate(
{
[Priority].[Highest]
}
)
[Piority].[High et +]
Aggregate(
{
[Priority].[High],
[Priority].[Highest]
}
)
[Piority].[Medium et +]
Aggregate(
{
[Priority].[Medium],
[Priority].[High],
[Priority].[Highest]
}
)