Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Line chart

I have 3 columns based on the data value i want to show line chart-

  

idOpenclosedstatus
19/1/20159/2/2015closed
29/1/20159/1/2015closed
39/2/20159/2/2015closed
49/3/20159/3/2015closed
59/4/20159/5/2015closed
69/5/20159/5/2015closed
79/5/2015

open

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi Suman,

Without changing the script it is not possible to handle this, change your script like below

Data:

LOAD

id,

Open AS Date,

'Day' & Day(Open) AS Day,

'Open' AS Status

FROM DataSource;

Concatenate(Data)

LOAD

id,

closed AS Date,

'Day' & Day(closed) AS Day,

'Close' AS Status

FROM DataSource;

Now in chart simply try like this

Chart : Line Chart

Dimension: Day, Status

Expression: Count(Status)

Hope this helps you.

Regards,

Jagan.

View solution in original post

8 Replies
Not applicable
Author

Sumun, you need to create a new table like below in the script.

id     Date       Status

1     9/1/2015   Open

1     9/2/2015   Close

2     9/1/2015   Close

.

.

.

.

.

Anonymous
Not applicable
Author

Thanks for your mail.

Please help me to construct the expression

jonathandienst
Partner - Champion III
Partner - Champion III

Build a qvw model with the data and make your best effort. Then, when you get stuck, you can ask for some assistance. If you have shown that you have put some effort in yourself, you will get much more help from others.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
miguelbraga
Partner - Specialist III
Partner - Specialist III

Here Suman take a look

Notes, the charts have the same results because there are the same 'open' and 'closed' numbers of id's

Anonymous
Not applicable
Author

That means we need to change the file structure?Without change the structure how can I do that...please help

Anonymous
Not applicable
Author

Hi,

It is not possible for me to change the file structure.

Open depends on requested date and closed depends on resolved date.

Anonymous
Not applicable
Author

Thanks for your suggestion ..I have tried but couldn't.

Please help how can we do without change the table structure.

jagan
Luminary Alumni
Luminary Alumni

Hi Suman,

Without changing the script it is not possible to handle this, change your script like below

Data:

LOAD

id,

Open AS Date,

'Day' & Day(Open) AS Day,

'Open' AS Status

FROM DataSource;

Concatenate(Data)

LOAD

id,

closed AS Date,

'Day' & Day(closed) AS Day,

'Close' AS Status

FROM DataSource;

Now in chart simply try like this

Chart : Line Chart

Dimension: Day, Status

Expression: Count(Status)

Hope this helps you.

Regards,

Jagan.