Skip to main content
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.

13 Replies
sunny_talwar

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

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

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

Isn't this what you want?

Capture.PNG