Dear SAS VA community,
From the columns "Have", I am trying to generate a calculated item "Want": = the count of Have.
| Have | Want (=calculated item) |
| A | 4 |
| A | 4 |
| A | 4 |
| A | 4 |
| B | 3 |
| B | 3 |
| B | 3 |
Is there an easy way to do this in SAS VA? "Want" needs to be dynamic, so I can't do it in SAS EG.
Thanks in advance!
Hello @RedBishop ,
Which version of VA you are using? One way to achieve this in VA8.3 onwards is by creating Aggregated Data Source (Selected items: Have + Frequency) from the original data source. Then utilize New data from join to join the aggregated frequency back to original data.
Best regards,
Petri
Thanks for the reply @PetriRoine. Too bad I'm using SAS VA version 7.4.
Assuming it's just impossible then?
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 save with the early bird rate—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.