That is correct, any business logic in GoodData can be only written in MAQL within a metric. And result of a metric can only be numeric.
There is one way how to overcome this in the hosted GoodData Platform and that would be to use
Computed Attributes feature.
With this, you can use a metric to calculate some numeric value and then create a computed attribute which is based on this metric (and one other attribute by which the value of the metric is calculated). You can define fixed ranges and name them. You can then use this computed attribute as if it was a normal one.
Please note that computed attributes are still considered beta and have some limitations, especially:
• once created it can not be modified (only deleted)
• if you ever need to migrate a computed attribute into another workspace (without using LCM bricks), it is a bit more complicated -
see the steps here
• there might be some issues with parent filters for computed attributes
This feature is currently not available in
GoodData.CN