Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Line Chart

I have a table like this:

DateValuePrecision
10.11.2012100.1
11.11.2012150.2
11.11.2012200.15
11.11.2012100.1
12.11.2012200.2
12.11.2012150.3

I would like to build a line chart which would have dates on the x-axis and values at y-axis. It should display values for each date. The problem is having multiple values on a single day. How can we dispay all values for each day?

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Generally in chart the expression need to use some of the aggregation functions, otherwise if there are multiple values for the same dimension value then you will get the null value for that dimension, to overcome this you need to differentiate each dimension value like below

LOAD

Date(Num(Date) + RecNo()/1000) AS Key,

Date,

Value

FROM DataSource;

Now use Key in dimension and value as expression, now you will get all the values.

Hope this helps you.

Regards,

Jagan.

View solution in original post

5 Replies
Not applicable
Author

hello,

I believe that if you put the DATE dimension and expression to put COUNT (VALUE) and COUNT (PRECISION) will work.

maleksafa
Specialist
Specialist

you need to use sum or other aggregation function on the value field.

jagan
Luminary Alumni
Luminary Alumni

HI,

Try like this, you need to use aggregation function Sum(), Max() or Min() as per the requirement.

Dimension : Date

Expression: Sum(Value)

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

But this will give me the sum of values for each day. I want to display all the values instead of displaying the sum or average of those values.

jagan
Luminary Alumni
Luminary Alumni

Hi,

Generally in chart the expression need to use some of the aggregation functions, otherwise if there are multiple values for the same dimension value then you will get the null value for that dimension, to overcome this you need to differentiate each dimension value like below

LOAD

Date(Num(Date) + RecNo()/1000) AS Key,

Date,

Value

FROM DataSource;

Now use Key in dimension and value as expression, now you will get all the values.

Hope this helps you.

Regards,

Jagan.