Knowledge Drop

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

  • 5 April 2021
  • 0 replies
  • 645 views

Userlevel 5

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.                

 

 


0 replies

Be the first to reply!

Reply