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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to create the X-axis like this?

Hi I'm trying to re-create this graph: 14ga.png

What expression can I use to create an x-axis like that?

I'm currently ending up with a graph like: 123a.png

Anyone have any ideas?

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Create the chart with

Class(RPM,1500) as Dimension

and Sum(Duration) as Expression

Please refer the below example

load * inline [

RPM,Duration

1000,30

2000,40

4000,50

6000,70 ];

View solution in original post

3 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Check Class() in Qlikview Help file

class(expression, interval [ , label [ , offset ]])

Creates a classification of expressions. The bin width is determined by the number set as interval. The result is shown as a<=x<b, where a and b are the upper and lower limits of the bin. The x can be replaced by an arbitrary string stated in label. 0 is normally the default starting point of the classification. This can be changed by adding an offset.

Examples:

class( var,10 ) with var = 23 returns '20<=x<30'

class( var,5,'value' ) with var = 23 returns '20<= value <25'

class( var,10,'x',5 ) with var = 23 returns '15<=x<25'


Regards,

Jagan.

Not applicable
Author

Hi,

Create the chart with

Class(RPM,1500) as Dimension

and Sum(Duration) as Expression

Please refer the below example

load * inline [

RPM,Duration

1000,30

2000,40

4000,50

6000,70 ];

SunilChauhan
Champion II
Champion II

class is a good way to do this

even you could customized X to RPM like attached one

Sunil Chauhan