Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
Author

Anonymous
Not applicable
Author

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

Not applicable
Author

*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

Anonymous
Not applicable
Author

My case is in qlik sense....

NareshGuntur
Partner - Specialist
Partner - Specialist

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

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

Anonymous
Not applicable
Author

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

NareshGuntur
Partner - Specialist
Partner - Specialist

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

brunobertels
Master
Master

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

Anonymous
Not applicable
Author

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.