Rahul Takle Posted July 13, 2023 Share Posted July 13, 2023 we need sorting of x-axis with the help of numerical column in scatterplot.Plase find the Attached test DXP file, In which I want sort Batch (X-axis) column with the help of Nsort column. Link to comment Share on other sites More sharing options...
Gaia Paolini Posted July 13, 2023 Share Posted July 13, 2023 The easiest way would be to add Nsort to the X axis (before Batch). See picture. I only tested it with your sample data.Would that work for you? Link to comment Share on other sites More sharing options...
Rahul Takle Posted July 13, 2023 Author Share Posted July 13, 2023 Hello Gaia , Thanks for the quick responce. Yes we can add Nsort to X-axis but we aren't able to hide that sort column, is there any other we can sort the x-axis. ex. Scripting or anything else. Link to comment Share on other sites More sharing options...
Gaia Paolini Posted July 13, 2023 Share Posted July 13, 2023 I tried this, can you see if it works for you?The goal was to display [batch] but with the order of [sNort]. However it does not seem to work when they are not both categorical. So I created a new calculated column [sSNort] asString([sNort])Then I went to top menu > Data > Column propertiesselected SSNortselected the Sort order tabselected 'Natural string sort'.This seemed to do the trick of sorting a string like a number (so that e.g. 10 does not come before 2).Then I changed the X axis to [sSNort], which correctly displayed the right order.But: I do not want to see [sSNort] on the X axis, I want to see[batch].So I clicked on the side bar "Data in analysis" symbol (icon looks like a book page)selected SSNortit expands to the right, make sure you are on the "cog" view (Details on selected column)scroll down to "Display values"change Default to "Batch"NOTE: make sure you click on the small "cog" to its right (Settings) and change the selection to: Sort on original column values.Now the tick marks on the X axis should appear as the [batch] values.The only thing left is the label, which you can manually change to Batch by changing the Display name on the X axis expression. Link to comment Share on other sites More sharing options...
Rahul Takle Posted July 14, 2023 Author Share Posted July 14, 2023 Thanks for the detail explanation. It work for me.🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now