Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

amir_vitman
New Contributor

Line Chart - 2 measures - color by expression

Hi all,

Can someone please help me to understand how to implement 2 colors in a line chart.

I want each line will be other color (blue and green) what is the best way to implement it?

10 Replies
Not applicable

Re: Line Chart - 2 measures - color by expression

amir_vitman
New Contributor

Re: Line Chart - 2 measures - color by expression

Thanks but i didnt see the solution in your link ... what is the right expression if for 2 meausres and colors?

Not applicable

Re: Line Chart - 2 measures - color by expression

*In chart properties see colors there can specify colors for each of the axes


*1.PNG


If you want to put dynamic colors you can expand the on expressions of your chart and put colors through conditions


d.PNG

amir_vitman
New Contributor

Re: Line Chart - 2 measures - color by expression

My case is in qlik sense....

nareshguntur
Valued Contributor

Re: Line Chart - 2 measures - color by expression

If it is Qlik Sense, try this. It holds good for Line Chart as well.

https://community.qlik.com/docs/DOC-8492#comment-41642

amir_vitman
New Contributor

Re: Line Chart - 2 measures - color by expression

Thanks, but my case is with calculated measures (set analysis) and not dimentions...what do you think?

nareshguntur
Valued Contributor

Re: Line Chart - 2 measures - color by expression

If you can post a sample qvf with some test data, it would be easier

brunobertels
Valued Contributor

Re: Line Chart - 2 measures - color by expression

Hi

See this link that should help you

https://community.qlik.com/message/921010#921010

there is en App example attached very usefull and you will read 2 approch to test with your data :

First with synthetic dimension with value list

second by adding mesure in your script (App example)

May be first one will be more efficient due to set analysis mesure

Regards

amir_vitman
New Contributor

Re: Line Chart - 2 measures - color by expression

Thats worked

Thank you very much!

but now the problem that i dont have a legand per maures

I hope in the next version qlik will add the option to change the color easily and not with expression.