Forum Discussion
Issues with order in column
- 8 years ago
Hi bcastillo
I can reproduce your problem.
My "Quarterly data" column is of text type, when I add it to the axis of the line chart,it will sort by another column of number type by default. picture below is an example.
One workaround is:
create a Index column in Query editor
Then in Report View, select "Quarterly data" column, then select on the Modeling->Sort by column, click on the "Index" column.
Next on the Line chart, select the three dots on the upper-right of it, select "Sort by"->"Quarterly data".
Best Regards
Maggie
Need to add a column wiht a numeric year quarter. If you dont' have it in your date table you can add by adding a calculated column
Year Quarter Number = YEAR([date]&FORMAT([date],"Q")
Then form the Table View Select the Text column for the Q-YR and choose sort by and select Sort By.
If you don't see a sort option at all there may be a sort otpion you need to change the option in the AXIS properties for type and choose categorical instead of continuous.
- bcastillo8 years agoFrequent Visitor
I am getting an error message when I use that code
SpoilerCannot convert value 'Q2-17Q2-17' of type Text to type Date.- Seward125338 years ago
Solution Sage
Format will require it in date format. Instead just extract the year and quarter number from your text.
Something like VALUE(RIGHT([Quarterly Data],2)&MID([Quarterky Data],2,1])
May need to play with the start on the Mid I always get confused if it starts with 0 or 1 as the first character.- bcastillo8 years agoFrequent Visitor
When I try to change the format as a Date it gives me this error
- bcastillo8 years agoFrequent Visitor
Also, I do not have the option to select continuos, if I click it it goes right back to categorical