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.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.