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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
markgraham123
Specialist
Specialist

Line graph X-axis values sorting

Hi,

I have a data like

Product   Sales

1          100

2          25

3           50  

4          15

I wanna plot Product on X-axis like 4 2 3 4 but not 1 2 3 4 so as to get the continuous line.

Can anyone help me

Attached is my current applicaiton.

Labels (1)
13 Replies
sunny_talwar
MVP
MVP

Hey Mark

I think you forgot to attach. Please attach it again.

Best,

Sunny

markgraham123
Specialist
Specialist
Author

Hi Sunny,

How are you?

Here is my attachment.

giakoum
Partner - Master II
Partner - Master II

use dual when you load product. text can be the product name and number the order you need it.

if you sort by product in your chart, it will sort by number not text

Kushal_Chawda
MVP
MVP

Create a line chart with Dimension: Product & Expression : Sum(Sales)

Now go to chart properties and go to sort Tab, check Y-value Ascending

sunny_talwar
MVP
MVP

See if this helps (Sorting on Y-value Ascending)

Capture.PNG

markgraham123
Specialist
Specialist
Author

Sunny, i tried that but the X-axis values were loading from 1. So, it still shows the same result.

markgraham123
Specialist
Specialist
Author

Hi,

Its still the same result.

1.png

markgraham123
Specialist
Specialist
Author

Hi Ioannis,

Can you please explain it.

sunny_talwar
MVP
MVP

Isn't this what you want?

Capture.PNG