How can I make one column have a conditional format style based on another column's value?

Knowledge Drop

Last Tested: Jan 21, 2019
 

This is possible using Liquid in the html: of a given LookML field. The example is not exactly highlighted in this community article, but it can help for a reference point. For example:

Article

html:

{% if value == 'Shipped' or value == 'Complete' %}

Using Liquid _value

html:

{% if value == 'Shipped' or orders.state._value == 'California' %}

Where _value is a Liquid variable that lets you refer to other values in the same row. See this page for more details.

This content is subject to limited support.                

Version history
Last update:
‎04-05-2021 09:04 AM
Updated by: