I'm trying to create a metric that is a percentage of a given total.
Let's suppose the following table:
I want to create the metric % of Type 3, that basically is (pseudo-code):
% Type 3 = CountRows(type == "type3") / CountRows(*)
Without any filter, I would have:
% Type 3 = 4 / 10 = 0.4
And filtering by city4
, I would have:
% Type 3 (city == "city4") = 3 / 10 = 0.3
How can I do that ?
Best Regards.