Hello!
I am trying to get a user_id % of total calculation. Specifically, I am trying to get the user_id count of users I left joined over the primary datasource. The calculation I have works as expected, but goes to 100% when I try to filter by the user age. Please see the following current calculation:
distinct_count({user_id[joined_dataset]}) / distinct_count({user_id})
After doing some research on level-aware calculations, I’ve also tried the following:
distinctCountOver({user_id[joined_dataset]}, [Age], PRE_AGG)
/
distinctCountOver({user_id}, [Age], PRE_FILTER)
While the above calc reduces the % of total, it still is giving me incorrect percentages. I also get an error when I try to do a distinctCountOver in the denominator while leaving a distinct_count in the numerator (mismatched aggregation).
Any help here would be greatly appreciated!