In a table I have values Name fruits ---------------- xxx Apple yyy Orange zzz Papaya aaa Pineapple bbb Orange ccc Papaya ddd Papaya fff Apple
I need a measure to count the highest repeated value (which is Papaya it repeats 3 times). I tried with query CALCULATE(COUNT(call_data[fruits]),FILTER(call_data,call_data[fruits]="Papaya"))
but I have to give the value every time in filter. if another fruit count goes higher then I have to change the filter name.
so how could I write a query to count the 1st highest value.