In Cost Plan Detail View, with an active Compare and Group By, certain Per Period metrics will throw an error API-1057 when adding them as a column to the view
STEPS TO REPRODUCE:
Expected Results: The columns to be added successfully when Compare is used with Group by
Actual Results: Metrics are added. Error message:
API-1057 : An attribute needs to be groupable or aggregatable to be used in group by or aggregation respectively. Attributes used in ''groupBy'' and ''aggr'' must be present in fields. ''sort'' and ''expand'' cannot be used with ''groupBy''.
DevTools shows HTTP 400 Bad request
Note: if you add the columns one by one, some of the metrics do not throw an error. These columns seem to always cause the error:
Clarity 16.2.3, 16.3.0, 16.3.1
DE167763
Workaround:
Add all the columns you need to the view first, before adding a comparison. Once you added them, you can also save the view for use with Compares
Or
Do not Group By