Create custom groups based on user_id without adding new dimension

Let’s say I have a list of user_ids = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

group_a = [0, 2, 7, 8, 4]

group_b = [1, 3, 9, 5, 6]

Is it possible to compare these two groups for a certain measure, let’s say earnings, without creating a new dimension. I need to do this multiple times for different user_ids but I do not want to create a seperate dimension every time.

I have tried this as a custom filter:
matches_filter(${users.user_ids}, 0, 2, 7, 8, 4)
but then logically I can only see the results of group_a. Is there a way to see group_b as well, within the same graph?

0 1 662
1 REPLY 1
Top Labels in this Space