BookmarkSubscribeRSS Feed
SomanDavuluri
Fluorite | Level 6

Dear All ,

 

I have question and request help ..

 

I have three columns A ,B and C

 

A column aggregation is taken as SUM

B column aggregation is taken as Average

C colimn aggregation is taken sa SUM

 

Now when i choose the option of column sub totals  for B column i find the average is being displayed ...

 

is there any workings where we can get the total of averages for the B column ?

 

Regards

Soman

6 REPLIES 6
SomanDavuluri
Fluorite | Level 6
wating for some to revert on my query
TejaSurapaneni
Lapis Lazuli | Level 10

Hi Soman,

 

You can try this...

Create an Aggregated Measure

 

Avg [_ByGroup_] ('B'n) / Avg [_ForAll_] ('B'n)

 

Instead of Avg you can take SUM...

 

Hope this will help..

 

Let me know

 

Thanks & Regards,

Teja Surapaneni

SomanDavuluri
Fluorite | Level 6

HI teja ,

 

it did not work , i have enlosed an image for u , so that u can have clear view of the issue

 

 

request u r input

 

regards

 


ws.jpg
TejaSurapaneni
Lapis Lazuli | Level 10

Hello Soman,

 

Sorry I thought that you asking about percent of subtoal.

 

i have seen your screen shot.

 

As per my knowledge it is not possible..

 

let's hope someone can help..

 

Thanks & Regards,

Teja Surapaneni.

 

 

MichelleHomes
Meteorite | Level 14

Column sub totals and totals is aggregated based on the statistic used. There isn't a way to override the statistic calculation you desire in the default cross table object.

 

If Averages are chosen then the sub total/total is an average. It doesn't make sense to see a sub total as the sum of averages when the underlying reported line items are averages.

 

Kind Regards,

Michelle

 

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com
Lodewijk
Obsidian | Level 7

I don't think this is possible. You cannot set the aggregation type in the data pane for an aggregated measure, so you cannot sum averages.

 

Remember that VA does not use the contents of the table to determine the totals, it uses the underlying dataset. So where the averages in the table are a [_ByGroup_] average, the total shown under the table is the same aggregation but as a [_ForAll_] average.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 6 replies
  • 2674 views
  • 0 likes
  • 4 in conversation