Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
paolojolly
Creator
Creator

Need Combined expressions for Line chart

Hi, I have the following two graphs

grafici.png

with Month-Year and Item as dimensions for each of the two graphs and in which for each item I have a line with a different color

If I try to combine the graphs and to create a single graph using GRO PRI and NET PRI as expressions

grafici 2.png

I have the follow result

grafici 3.png

in which I lose the item group.

I need to have for each item different line (one for net pri and one for gro pri) and using diffent color to identify the different items


Can someone help me?


Thanks

1 Solution

Accepted Solutions
vgutkovsky
Master II
Master II

That's a really complex requirement...take a look at the attached. That's one way to accomplish what you need.

Regards,

Vlad

View solution in original post

4 Replies
vgutkovsky
Master II
Master II

That's a really complex requirement...take a look at the attached. That's one way to accomplish what you need.

Regards,

Vlad

paolojolly
Creator
Creator
Author

Thanks for your reply. I have another problem, sometimes the chart does not return me any results and I do not understand why.

I attach the document

Can you help me? Thanks so much

grafici4.png

vgutkovsky
Master II
Master II

Try to modify your data model to get rid of that synthetic key. Also, create the Month-Year field in the data model instead of as a calculated dimension. If the problem still persists then, repost the new application and I'll try to take a look.

Regards,

Vlad

paolojolly
Creator
Creator
Author

I solved the problem by adding text () function in the expression

grafici5.png

many thanks for your cooperation

Regards,

Paolo