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: 
hafiyuddin_azhad
Contributor II
Contributor II

Build line chart with two field

Hi, I tried to find how to build a line chart using multiple field. Can please anyone help? Below I put example how my data is.

Week Status Price
1 inactive $2
2 active $6
3 inactive $9
4 inactive $3
5 active $4
6 active $5
7 inactive $1

 

How can i build a line chart with dimension week and measure inactive=price & active=price?

so it need to be 2 line in 1 line chart.

please assist me. thank you

1 Solution

Accepted Solutions
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

If I got this correct, you want to two lines. One for Active and one for Inactive.

Put 2 measures in line chart like below.

Line 1 : Sum({<Status = {'active'}>}price)

Line 2 : Sum({<Status = {'inactive'}>}price)

 

Thanks,

Ashutosh

 

View solution in original post

3 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hello,

If I got this correct, you want to two lines. One for Active and one for Inactive.

Put 2 measures in line chart like below.

Line 1 : Sum({<Status = {'active'}>}price)

Line 2 : Sum({<Status = {'inactive'}>}price)

 

Thanks,

Ashutosh

 

hafiyuddin_azhad
Contributor II
Contributor II
Author

thank you! it works!

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Great 🙂