Count story points for assignee in different roles

Hi,
We have a report that is currently built in a Spreadsheet that provides story points for members of the team (assignees) - closed, tested, and groomed.
Screenshot 2023-06-14 at 15.37.05

To track this information, we have several custom fields where user information is stored, in the same way as the assignee. I tried to build the report based on some search I did in the community, but the measures don’t give any real information.

(
[Measures].[Story Points closed],
[Assignee].[User].GetMemberByKey(
  [Ticket Designer].CurrentMember.Key
),
  [Assignee].DefaultMember
)

Screenshot 2023-06-14 at 15.38.54

I need to calculate closed Story Points per assignee when he was tester and ticket designer.
Thanks!
Alexandra

hi, @admins ,

can you please help with the request above? Thanks!