Hi,
I am not sure if the title is accurate. Here is what I am trying to achieve and hope some of you can help.
I have my source loaded from an excel file with the following data:
Project | Software 1 | Number of copies | Software 2 | Number of copies | Software 3 | Number of copies |
A | Excel | 2 | Word | 1 | Powerpoint | 1 |
B | Word | 1 | Photoshop | 2 | Visio | 1 |
C | Powerpoint | 3 | Excel | 1 |
I would like to be able to show the above data using a pie chart to show the number of copies.
The software name is dynamic.
Hope the problem is clear.
Thank you very much for your help.
Hello @stanh
This is doable directly in VA designer, but the easiest way would be manipulate the data structure to better support vizualisation.
If you want to do it with this data structure here's the steps that I did.
IF ( 'SW1'n NotMissing ) RETURN 'SW1'n ELSE ( IF ( 'SW2'n NotMissing ) RETURN 'SW2'n ELSE 'SW3'n )
( IF ( 'Number of copies 1'n NotMissing ) RETURN 'Number of copies 1'n ELSE 0 ) + ( IF ( 'Number of copies 2'n NotMissing ) RETURN 'Number of copies 2'n ELSE 0 ) + ( IF ( 'Number of copies 3'n NotMissing ) RETURN 'Number of copies 3'n ELSE 0 )
I hope this helps.
Best regards,
Petri
Thank you, @PetriRoine
Just wondering if what you have suggested is doable in VA 7.3?
Sorry, I don't think it's possible in VA 7.3 as aggregated data source feature came in VA 8.3.
Best regards,
Petri
Do you have any suggestion how I can do it in VA 7.3?
Thank you!
It should be possible to transform your data structure by using SAS DATA step or SQL syntax. Preparing the data in this way should greatly simplify visualization in VA.
@stanh - Changing your data from wide to long format should do the trick:
Project | Software | Copies |
A | Excel | 2 |
A | Word | 1 |
A | Powerpoint | 1 |
B | Word | 1 |
B | Photoshop | 2 |
B | Visio | 1 |
C | Powerpoint | 3 |
C | Excel | 1 |
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.