Hi,
is it possible to take a standard bar chart in VA and sort it by a measure instead of a category?
If got a bar chart that shows for each day the limit utilization in percentages for counterparties. It's not a stacked bar chart. The only sorting option I find is by category, here Counterparty, and as such either ascending or descending alphabetically. I've applied a rank on the bar chart only showing me the latest available date from the underlying dataset and would like to sort the bars according to the limit utilization from the highest to the lowest.
Does anyone have pointers for me how to do so?
I'm using version 7.4.
Here is an example that might be similar to what you want to do. In this sample, you end up creating a custom graph.
http://support.sas.com/kb/59/480.html
I don't use SAS VA so I am not entirely sure, but does creating a custom sort help fix your problem?
https://blogs.sas.com/content/sgf/2015/02/27/sas-visual-analytics-creating-a-custom-sort-order/
Best,
Tom
Hi Tommy1 thanks for the suggestion!
I've looked into it and it seems custom sort is only available on categories and then it is fixed. So lets say I choose a certain sort of X Y Z based on their utilization at present time, then going forward a month Z X Y might be the top three but I'm stuck with the X Y Z sorting. I'm more looking for a dynamic sorting based on a measure.
Kind regards,
Ottar
You should be able to sort by the measure, using RightMouseButton on the measure and sort accordingly
Hi Bruno, thanks for the suggestion!
I looked into this and my Y axis which contains the utilization does not allow right mouse click -> sort. From what I've seen so far it is only possible on the X axis.
Kind regards,
Ottar
You should send the role assignment and a screenshot of your graph, to help you more. you mentioned you are not using a stacked bar chart, so the sort should just work.
This is a screenshot of the barchart as is looks now. The sorting is based on Counterparty going from A-Z. On the Y axis there is utilization which I'd like to sort by, going from highest to smallest, left to right but I can't seem to make it work 😕
Well I can still not see the roles assigned to this graph, so I am just guessing:
Is this correct?
This is possible with VA7.5 (based on SAS 9.4, not out yet) or VA8.3 (based on SAS Viya), here is a screenshot from VA7.5
Here is an example that might be similar to what you want to do. In this sample, you end up creating a custom graph.
http://support.sas.com/kb/59/480.html
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.