Is it possible to rename fields when joining a view to a explore?

I would want to rename a field when doing the join of a view into a explore, to have a more descriptive name for that use case. Is there a way to do this?

Solved Solved
1 6 3,139
1 ACCEPTED SOLUTION

Hey @Maria_Garcia_Gu,

Great question. We can label fields to give them a more descriptive name in general, but we don’t have any native LookML parameters at the join level that would let you rename the field based on the join.

That being said, the label parameter for fields can be made dynamic using liquid, and we could reference the _explore._name variable inside of some conditional logic to accomplish something like this - Something like:

 

dimension: field {
...
label:
"
{% if _explore._name == 'Explore One' %}
field_name_one
{% else %}
field
{% endif %}
"
}

Let me know if there’s anything I can clarify!

View solution in original post

6 REPLIES 6
Top Labels in this Space
Top Solution Authors