How do I calculate percentage in SAS viya using data item (calculation)
There are built-in calculations. Have you tried those to see if they meet your needs?
https://go.documentation.sas.com/doc/en/vacdc/8.5/vareportdata/p1vsphor4qnevcn13p4bepmj5wwx.htm
-------------------------------------------------------------------------
Four tips to remember when you contact SAS Technical Support
Tricks for SAS Visual Analytics Report Builders
SAS Visual Analytics Learning Center
Thanks a ton for your reply
I need to calculate percentage of subtotal and show in line chart . I tried this method but i am not getting the option of percentage of subtotal. I am using SAS viya 3.5
Could you please share screenshot of your data to understand exact
requirement?
try to calculate column as per attached document.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.