Hi,
I wanted get a month KPI for issues with resolution date and spent hours for some specific users.
For this I’ve created a group for logged_by and used that group to create a new hours spent formula with take into account only the spent time by the users from the group.
However, the components of the group change from time to time and I have to exclude/include some users for different periods. I tried in the end without success the following:
Aggregate(
CASE
WHEN [Time].CurrentMember.MemberValue < DateSerial(2025, 6, 1) THEN
{[Logged by].[User_A],
[Logged by].[User_B],
[Logged by].[User_C]}
WHEN [Time].CurrentMember.MemberValue <= DateSerial(2025, 6, 30) AND
[Time].CurrentMember.MemberValue >= DateSerial(2025, 6, 1) THEN
{[Logged by].[User_A],
[Logged by].[User_D]}
WHEN [Time].CurrentMember.MemberValue >= DateSerial(2025, 7, 1) THEN
{[Logged by].[User_A],
[Logged by].[User_B],
[Logged by].[User_C],
[Logged by].[User_D]}
ELSE
{}
END
)
This yields the warning
and then the error
Please let me know how to fix this, or what other option do I have.