Having an Issue with the "BY" feature in gooddata
Our data looks like below
usersid_ids user_id local_user_id
1 john john
2 john2 john
3 Mary Mary
4 Mary2 Mary
and Joins to our fact tables through usersid_ids.
The main thing to point out there can be multiple local_user_ids to one user_id, userid_ids which is why we are grouping by local_user_id.
userid_ids is unique
This is our MAQL
When we create. table we get 14. But when we do a count with this its 28 (sometimes).
For instance in the viz here. I swithc from table to bar and the number changes. I get one number and someone else gets another
https://reporting.laivly.cloud/dashboards/#/workspace/tenant-kors-v3/dashboard/527829e3-ab94-4709-965a-c508b77dcc95
We can't make sense of it
SELECT count({label/dim_sidd_user_ids.local_user_id})
WHERE(
SELECT ({metric/sidd_lost_order})
BY {label/dim_sidd_user_ids.local_user_id}
) > 0
AND
(SELECT ({metric/sidd_lost_order})
BY {label/dim_sidd_user_ids.local_user_id}
) <= 0.50