Mal Sharkey
02/08/2022, 12:35 PMAssetID AsssetName Condition
1 Test asset 5
2 Test two 2
3 Test three 3
4 Test four 4
5 Test five 1
The condition values represent the following attributes:
1 = Very Good
2 = Good
3 = Moderate
4 = Poor
5 = Very Poor
Is there an easy way in GoodData to display the text value (e.g. "Very Good") instead of the number value (e.g. "1")? I could import a CSV to the data model that maps the numbers to the text values. Is that the most efficient approach?Boris
02/08/2022, 1:12 PMBoris
02/08/2022, 1:15 PMMal Sharkey
02/08/2022, 1:27 PMBoris
02/08/2022, 1:29 PMSELECT CASE
WHEN Condition IN (1) THEN 1,
WHEN Condition IN (2) THEN 2,
WHEN Condition IN (3) THEN 3,
WHEN Condition IN (4) THEN 4,
WHEN Condition IN (5) THEN 5
ELSE 0 END
then as you would use this metric in the insight, you can transform the numerical value to text via conditional number formatting, i.e. like this:
[=1]Very Good;
[=2]Good;
[=3]Moderate;
[=4]Poor;
[=5]Very Poor;
N/A
Boris
02/08/2022, 1:32 PMMal Sharkey
02/08/2022, 1:47 PM