Hi,
I'm fairly new to SAS VA and am trying to work with 'measure' data as a hierarchy. I work with income data for instance and I need to be able to produce reports that have the roll-up of variables embedded. Here's an example of a hierarchy that I would use:
Market income
-Wages and salaries
-Self-employment earnings
- farm
- non-farm
-Pensions
-Investments
- dividends
- interest
- etc.
-Other
All of this data $ amounts and I want to be able to produce a report where I can click the high level variable and get a picture of what's happening. Another click and I see the next level in the hierarchy.
Problem I'm having is that the hierarchy is limited to categorical variables in SAS VA. There must be a work around, but it's not clear to me. Any help is much appreciated! The reports just need to produce basic summary stats. Sum, counts, average min ,max, median etc.
Thanks,
Chris
You can force a variable to become a category by changing its property, however, I don't think this will solve your issue because then the measure will no longer be available. So you may consider creating new variables based on the measures and forcing them to be category.
I suspect your data needs to be transposed. So instead of looking like this:
Wages Farm Non-Farm
123 100 23
It needs to be shaped like this:
Income Source SubSource Wages
Market Self-Employee Farm 100
Market Self-Employee Non-Farm 23
Then you can build the hierarchy from Income, Source, SubSource and Wages is your measure.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.