Is there a way to remove the suffix in the label ?
I want to do a german translation which is done using Cyril suggestion .
When trying to apply the same type of logic to the label , i get the translation as in the field picker but with a suffix:
dimension_group: datum {
group_label: "Zeit"
group_item_label: "{% assign timeframe = _field._name | remove: \"umsatzposition.datum_\"
| replace: \"_\" , \"\"
| replace: \"year\" , \"Jahr\"
| replace: \"month\" , \"Jahr-Monat\"
| replace: \"date\" , \"Datum\"
| replace: \"quarter\" , \"Quarter\"
| replace: \"week\" , \"Woche\"
%}{{ timeframe }}"
label: "{% assign timeframe = _field._name | remove: \"umsatzposition.datum\"
| replace: \"year\" , \"Jahr\"
| replace: \"month\" , \"Jahr-Monat\"
| replace: \"date\" , \"Datum\"
| replace: \"quarter\" , \"Quarter\"
| replace: \"week\" , \"Woche\"
%}{{ timeframe }}"
type: time
description: "date column"
timeframes: [
raw,
time,
date,
week,
month,
quarter,
year
]
convert_tz: no
sql: CAST(${TABLE}.datum as TIMESTAMP) ;;
}
so the field picker looks fine,
But in the visualization i have the following:
so I get the translation as wanted but i also have the suffix which is appended .
Is there a good way to get rid of that suffix ?
I would like to get “Jahr” instead of “Jahr Year”, or “Jahr-Monat” instead of “Jahr-Monat Month”
anyone know if this is possible and if so how ?