Let's consider this :
Student | Score
S1 87
S2 75
S3 52
I want to create a pie chart or horizontal chart showing what percentage of students scored more than the average score.
According to the above example, Avg(Score) = 71.33
% of students scoring more than avg(score) is 66.67% (S1 & S2)
Already gone through How to count occurrence of value and percentage of a subset in tableau public? but in that question, the comparison is against a static value rather than an aggregated value.