I am looking to create a bar chart with two different categories that i can switch between using a button bar. these two categories are two fields in my table. I couldnt find a way using a calculated field or parameters to create a button bar that allows me to switch between categories
In Visual Analytics 8.5 and later, a report designer can allow report viewers to switch data items in the report objects.
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
One example for a workaround: Solved: Creating dynamic measures in stacked bar chart - SAS Support Communities)
Another workaround could be using stacking containers with one bar chart each.
The example @MarkusWeick linked to is a little more complicated than what you want to do, but the basic idea of using a parameter and a calculated item is the same.
A stacking container is also a good idea.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.