BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
itchyeyeballs
Pyrite | Level 9

I've got a table of salaries and I'm looking to visualise difference between average of male vs female

 

Table structure is

 

id -Gender - Salary

1 -Male - 200,000

2 -Female - 200,001

3 -Male - 500,000

4 - Female - 500,001

 

I don't want to pre-aggregate in data prep (it kills ability to allow users to drill down unless I create n x n which gives HUGE LASR table)

 

I know VA can't do aggregations of aggregations but was hoping this was possible, I've failed so far.

 

Any ideas? (This should be simple - I think)

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
itchyeyeballs
Pyrite | Level 9

Hi,

 

Yes I had tried that but ran into some issues, just had another look though and its helped me pinpoint the issue (thank you)

 

VA calculated the average by dividing by the total population (so my measure which just summed one sex was going haywire), I had to manually create a denominator and use that to create my average.

View solution in original post

2 REPLIES 2
jltz83
Obsidian | Level 7

Have you tried setting the aggregation property of your salary measure to 'Average' and then creating new calculated items?

itchyeyeballs
Pyrite | Level 9

Hi,

 

Yes I had tried that but ran into some issues, just had another look though and its helped me pinpoint the issue (thank you)

 

VA calculated the average by dividing by the total population (so my measure which just summed one sex was going haywire), I had to manually create a denominator and use that to create my average.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 2 replies
  • 988 views
  • 1 like
  • 2 in conversation