I would like to create a ranking dimension in one of the Google Data Studio reports.
The data source for the report is [GSC Site] which has information on [Query] (a dimension) and [Average Ranking] (a metric). Trying to use the CASE formula to create a new field called "Ranking" as follows:
CASE
WHEN Average Position >= 0 AND Average Position <= 5 THEN "Top 5"
WHEN Average Position > 5 AND Average Position <= 10 THEN "Top 10"
ELSE "Not Ranked"
END
and get the message "Only numeric literals are allowed if aggregated fields are used in CASE."
As I understand, the field "Average Ranking" is metric with default aggregation "Auto" which prevents me from using the CASE formula.
What would be a possible solution where a new field is created as (i.e. dimension) with default aggregation "None" and populated with the above-ranking distribution values (Top 5, Top 10 and Not Ranked).