Forum Discussion
Sort Column Chart based on column which is not included into visual
Assume I have column chart with:
1. Name: on Axis field.
2. PaymentDayDiff on Value field.
But I want to sort the columns chart based on another column call `Spend` which is not available on Sort dropdown (because `spend` is not included into `Axis` or `Value`)
How can I do this?
6 Replies
- Greg_Deckler
Community Champion
In Desktop, you can go into your model, choose your column and set the "Sort By" column. 5th button from the left on the Modeling tab of the ribbon.
- cuongle
Advocate II
Thanks for your answer, but I am afraid that it does not work, the reason might be I did filter and select top n (use RANKX) for this column chart?
- Greg_Deckler
Community Champion
Hmm, are you getting any error or are you setting the Sort By column and the visual is not honoring it?
I have run into an issue using FIRSTDATE on a custom column and then trying to use it as a Sort By column and received an error that I was not allowed to do that. That's the only time I have had this not work.
- jdbuchanan71
Super User
This topic came up first in my search so I though I would reply with an answer. If you add a measure to the tooltip of a visual, it is not displayed but you can sort by it. Thanks to GuyInACube for the video.
https://www.youtube.com/watch?v=1bp_e-ik7aA
- AnonymousNot applicable
yo this works