Can liquid variables be used to change the dimension labels for a field to the value of a field ?
I have a table like:
create table kv (
id int,
subid int,
key varchar(100),
val varchar(255),
updated_at timestamp
)
primary key (id, subid, key);
Something like:
dimension: key_value {
type: string
label: “{% ${TABLE}.key %}”
sql: ${TABLE}.val
filters: {
field: id,
value: _user_attributes[‘customer’]
}
}
Is close to what I am thinking.
The latest subid will have all the unique ${TABLE}.key to use as labels. No need to get values from anything but the latest subid.
Thanks.