Hi, dear community, could you please help me with calculating customfiled history.
I,m want to see 2 columns:
How many issues was in current customfield value on end of period
How many issues was in current customfield value on end of period and was in this value stay more than 48 hours
For first measure I,m create that calculation: ([Measures].[Issues history], [Transition field].[Шаг], [Шаг].[03.00 BSC ПРОВЕРИТЬ И ПРОВЕСТИ ДАННЫЕ В СИСТЕМЕ])
Please try this code for your calculated measure in 2nd requirement:
NonZero(
Count(
Filter(
Descendants([Issue].CurrentHierarchyMember,[Issue].[Issue]),
--difference between last transition to last timestamp and currentmember.nextstartdate timestamp is more than 48h
Datediffhours(
Timestamptodate(
(
[Measures].[Transition to last timestamp],
[Transition Field].[Шаг],
[Шаг].[03.00 BSC ПРОВЕРИТЬ И ПРОВЕСТИ ДАННЫЕ В СИСТЕМЕ],
[Time].CurrentHierarchy.DefaultMember
)
),
[Time].CurrentHierarchyMember.NextStartDate
)>48
AND
(
[Шаг].[03.00 BSC ПРОВЕРИТЬ И ПРОВЕСТИ ДАННЫЕ В СИСТЕМЕ],
[Measures].[Issues history],
[Transition field].[Шаг]
)>0
)
)
)