Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

simple line chart not working

Hi all,

I am trying to make a simple line chart but it does not seem to work.

Athough it shows the data as a straight table the line chart does not render.

See attached example.

Regards.

Labels (1)
1 Solution

Accepted Solutions
Clever_Anjos
Support
Support

Your "TorqueValue" is loading as a text

Change

SubField(TorqueVal,',',2) as TorqueValue,

into

num#(trim(SubField(TorqueVal,',',2))) as TorqueValue,

Another point is that you need a aggregation function into your graph, maybe SUM() will fit

View solution in original post

3 Replies
kaushiknsolanki
MVP
MVP

Hi,

     This is because the TourqueValue is not in Number format, its in string format.

     Do following change in the script.

     Use the Num#() Function, to change string to number

TorqueData:

LOAD id,

  serial,

  firmware,

  SubField(TorqueVal,',',1) as Turn,

  num#(SubField(TorqueVal,',',2)) as TorqueValue,

  TestDate

Resident TorqueDataTmp;

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Clever_Anjos
Support
Support

Your "TorqueValue" is loading as a text

Change

SubField(TorqueVal,',',2) as TorqueValue,

into

num#(trim(SubField(TorqueVal,',',2))) as TorqueValue,

Another point is that you need a aggregation function into your graph, maybe SUM() will fit

Not applicable
Author

Thaks you both of you for the quick reply.

How haven't I notice. Hmm its probably the lack of sleep