You can use the “Data Preparation” to do the data conversion.
In a dataquery an additional column can be added to the table and set to 1. Then the new table is saved as “Stackedgroup1”:
Same is then done in a second query and value 2 for the additional column in the table “Stackedgroup2”.
Then the table “Stackedgroup1” is appended by “Stackedgroup2”:
The newly appended table “StackedGroup1” then can be loaded into the Report Builder. With two new calculated Items the needed columns can be created:
Now there are the columns needed for the graph:
Which version of Visual Analytics are you using, and what problems are you having when trying to follow the other community post?
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
Hi @Lindea,
is this the kind of graph you are looking for?:
Hi @Lindea
right, I had to reorganize the data:
Would this be a possible way for you?
In SAS there is a way. I'm not yet sure, if you can be done in VA only.
It can be done in VA. I will describe it later.
You can use the “Data Preparation” to do the data conversion.
In a dataquery an additional column can be added to the table and set to 1. Then the new table is saved as “Stackedgroup1”:
Same is then done in a second query and value 2 for the additional column in the table “Stackedgroup2”.
Then the table “Stackedgroup1” is appended by “Stackedgroup2”:
The newly appended table “StackedGroup1” then can be loaded into the Report Builder. With two new calculated Items the needed columns can be created:
Now there are the columns needed for the graph:
Could you please share a screenshot of data and role details as here:
@Lindea If you don't recognize someone's effort to help you out by giving likes or marking his contribution as solution you will likely end up having a monologue here...
It's fine, don't worry.
It's not for me, it aims at improving the overall experience and reward those helping hands with applause.
The SAS community is amazing and let's contribute all to keep this spirit alive.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.