BookmarkSubscribeRSS Feed
FilipJ
Calcite | Level 5

Hello

Is there an equivalent to Excels =SUBTOTAL(9;B2:B12) and =SUM(9;B2:B12), that can calculate the latter when using a filter in SAS VA?

Thanks

2 REPLIES 2
thiagoglima
Obsidian | Level 7

Hi @FilipJ,

 

You can do it with a Crosstab, please, read the Crosstab properties documentation through this link: http://support.sas.com/documentation/cdl/en/vaug/69957/HTML/default/viewer.htm#n1d46th0qjjhxdn16a6uj...

 

How someone with a similar issue has solved it:

https://communities.sas.com/t5/SAS-Visual-Analytics/Row-Total-Row-Subtotal-in-SAS-Visual-Analytics/t...

 

Best regards.

FilipJ
Calcite | Level 5

Hi.

 

Thanks for answering, but I am looking for a solutioner where, if I use eg. filter. the total will stay the same.

 

Lets say I have 1000 in 2015, 2016, 2017 making it a total of 3000.

If I use filter Year>2015 the subtotal should be 2000 and total still 3000.

 

How to? 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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 lock in 2025 pricing—just $495!

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
  • 2323 views
  • 0 likes
  • 2 in conversation