Forum Discussion
Issue sorting a column (Time constraint) on X-axis with multiple same text values/labels
- 3 years ago
10168 ,
Tried doing some quick research. Came across the following:
https://www.youtube.com/watch?v=TLiqqIsk1CU
1st comment is this:
- 3 years ago
10168 ,
Your Column [Fiscal Quarter Year] is simply a text value.
So sorting alphanumerically,
FY19-20 Q1 comes before
FY19-20 Q2 etc..
Similarly,
FY19-20 comes before
FY20-21 which comes before
FY21-22.
So always better to have yyyy-mm in your axis rather than mm-yyyy.
Does this explain it?
10168 ,
I recommend modifying your [Fiscal Quarter Label] to read Year then Quarter:
Fiscal Quarter Label
| FY19-20 Q1 |
| FY19-20 Q2 |
| FY19-20 Q3 |
| FY19-20 Q4 |
| FY20-21 Q1 |
| FY20-21 Q2 |
| FY20-21 Q3 |
| FY20-21 Q4 |
If you must display Quarter first, then use this new column as your SortOrder.
Regards,
Thank you ! that was great recommendation, I see how switching would benefit me into sorting, The axis does sort when I sort axis in the visual by the Fiscal Quarter Label, and Asc, however it defaults back to previous based on the parameter selection, the parameter is too important for me as it lets my end user switch between the labels for Months and Quarters
Do you have any recommendations to avoid that? Please and thank you !!
- rsbin3 years ago
Community Champion
10168 ,
I've never used Parameters to change Axis. Have always used Bookmarks to do this. I would simply update my Bookmark.
So I don't fully understand when you say "it defaults back to previous based on the parameter selection"?
- 101683 years ago
Helper I
I will look into Bookmark, thanks for that suggestion, the parameters is a new feature for me as well, I mean this below, goes back to how I would see without sorting
- rsbin3 years ago
Community Champion
10168 ,
Looks to me like the chart is sorting your "Multiplier" in Descending Order.
You should be able to click the elipsis in the top right corner of the visual and sort Axis in Ascending order.
Or please attach your pbix file and I can have a closer look. Please scrub any sensitive data before doing so.
Numerous youtube videos on Bookmarks if you wanna take the time. Much better explained than I can do here.