Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

leandro_abad
New Contributor II

Set color by expression (2 measures) - line chart

Hi,

I am trying to set green for "Cumplido" (Compliment) and red for "Cancelado" ("Canceled").

My measures are:

Cumplido:

SUM(FLAG_CUMPLIDO)

Cancelado:

SUM(FLAG_CANCELADO)

About the data:

If FLAG_CUMPLIDO = 1 then FLAG_CANCELADO = null and if FLAG_CANCELADO = 1 then FLAG_CUMPLIDO = null

Anyone has solved this kind of problem?

4 Replies

Re: Set color by expression (2 measures) - line chart

Not sure I understand your issue, can you elaborate or share a sample?

leandro_abad
New Contributor II

Re: Set color by expression (2 measures) - line chart

Hi Sunny,

This is my chart:

recorteProblemaSense.PNG

The red line (Cumplido) should be green and the blue (Cancelado) should be red.

I can't set by expression the colours right.

Sorry if my english is bad.

paul_scotchford
Valued Contributor

Re: Set color by expression (2 measures) - line chart

A simple fix is to swap around your measures.

leandro_abad
New Contributor II

Re: Set color by expression (2 measures) - line chart

OK... but... how I set the green colour?

Community Browser