• Community
    • Home
    • Welcome
      • Getting Started
      • Community Memo
      • All Things Community
      • SAS Customer Recognition Awards (2024)
      • SAS Customer Recognition Awards (2023)
    • SAS Community Library
    • SAS Product Suggestions
    • Upcoming Events
    • SAS Customer Recognition Awards
    • All Recent Topics
  • Learn
    • New SAS User
    • SAS Software for Learning Community
    • Ask the Expert
    • SAS Certification
    • SAS Tips from the Community
    • SAS Training
      • Programming 1 and 2
      • Advanced Programming
      • Course Case Studies and Challenges
      • Trustworthy AI
    • SAS Global Forum Proceedings 2021
    • Tech Report Archive
    • SAS Insights Archive
  • Programming
    • SAS Programming
    • SAS Procedures
    • SAS Enterprise Guide
    • SAS Studio
    • Graphics Programming
    • ODS and Base Reporting
    • SAS Code Examples
    • SAS Web Report Studio
    • Developers
  • Analytics
    • Statistical Procedures
    • SAS Data Science
    • Mathematical Optimization, Discrete-Event Simulation, and OR
    • SAS/IML Software and Matrix Computations
    • SAS Forecasting and Econometrics
    • Streaming Analytics
    • Research and Science from SAS
  • SAS Viya
    • SAS Viya
    • SAS Viya on Microsoft Azure
    • SAS Viya Release Updates
    • Moving to SAS Viya
    • SAS Visual Analytics
    • SAS Visual Analytics Gallery
    • Your Journey to Success
    • SAS Viya Workbench
      • SAS Viya Workbench: Getting Started
      • SAS Viya Workbench Discussion
      • SAS Viya Workbench: Release Updates
  • Administration
    • Administration and Deployment
    • Architecture
    • SAS Hot Fix Announcements
    • SUGA
  • Solutions
    • Microsoft Integration with SAS
    • Decisioning
    • SAS Decision Builder
    • Data Management
    • SAS Data Maker
      • SAS Data Maker: Getting Started
      • SAS Data Maker Discussion
    • Customer Intelligence
      • SAS Customer Intelligence
      • SAS Customer Intelligence 360 Release Notes
      • SAS 360 Match
    • Risk and Fraud
      • SAS Risk Management
      • Fraud, AML and Security Intelligence
      • SAS Risk Release Updates
      • Risk & Finance Analytics
      • Insurance Fraud
      • MRM AI Governance Working Group
      • SAS Quant Community
    • SAS Health
      • SAS Health and Life Sciences
      • SAS Life Science Analytics Framework
  • Hubs
    • Regional Hubs
      • SAS User Groups
      • SAS Community Nordic
      • AML Nordic User Group
      • SAS Japan
      • SAS Korea
      • CoDe SAS German
      • SAS Plattform Netzwerk
      • SAS Brazil Community
      • SAS Spanish Community
      • SAS Users Group in Israel
      • 欢迎来到SAS中文社区!
      • Ottawa Area SAS Users' Society
      • Toronto Area SAS Users Group
      • SAS Türkiye Community
    • Special Interest Hubs
      • SAS Hacker's Hub
      • SAS Innovate 2026
      • SAS Analytics Explorers
      • The Curiosity Cup
      • SAS Inner Circle Panel
      • SAS Hackathon Team Profiles (Past)
      • SAS Explore
      • Reporting and Optimization
      • Intern Alumni Network Community
Sign In

Search the Community

Showing results for 
Search instead for 
Did you mean: 
Search Options
  • Subscribe to RSS Feed for this Search
Advanced Hide Advanced
  • Posts
  • Users
  • Places
  • Products
Advanced Search Options
Search Modifiers:
You can apply modifiers to the terms you enter in the search field.
Use quotes to search for an "exact phrase".
Use the plus sign to search for +one +or +more +words.
Use the minus sign to -exclude -certain -words from your search.
Limits search results to topics that have no replies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
2,328 results
Sorted by:
Best Match
  • Date
  • Views
  • Likes
  • Replies
  • Best Match

Sum total row

by Obsidian | Level 7 Krysia24 in SAS Procedures
‎01-20-2021 06:55 PM
‎01-20-2021 06:55 PM
I would like to add a total row to my table. Here is what I have:   Gender  Freq  Percent  Males 20 25% Females  60 75%   Here is what I'd l...
Show results in replies (1)
  • ...emales 60 75% ; proc sql; select * from have union all select 'Total', sum(freq),. from have; q...

SAS Visual Analytics Report Example: Percent of Total – For All, For R...

by SAS Employee TeriPatsilaras in SAS Communities Library
‎03-30-2020 06:40 PM
2 Likes
‎03-30-2020 06:40 PM
2 Likes
...ou can also create custom measures to calculate a Percent of Total at both the row and column level when using a crosstab object.   The following examples walk through using a crosstab o...
  • Find more articles tagged with:
  • GEL
Labels:
  • SAS Visual Analytics
  • SAS Viya
  • Tips and Tricks

Is it possible to get Proc Freq to display total number of rows ONLY?

by Pyrite | Level 9 Wolverine in SAS Programming
‎08-29-2024 01:13 PM
‎08-29-2024 01:13 PM
I'm working with data that has millions of case IDs. As I apply various criteria to them, I want to know how many cases remain after each step. What I'm currently doing is using PROC SQL to get a cou...
Show results in replies (1)
  • I'm looking for a quick, efficient method to see how many cases remain after each criteria is added...

proc tabulate add totals rows

by Onyx | Level 15 Ronein in SAS Programming
‎02-11-2020 01:30 AM
‎02-11-2020 01:30 AM
Hello I wan to add Total row under each score and also grand total row. So there will be extra 3 total rows (one for score 'a' , second for score 'b'  and 3rd for grand total What is the w...
Show results in replies (1)
  • ...date; var Y; tables score *(ddate All='total') ALL, Y*(sum PCTN); run;

How to create a Total YTD row witout totaling percentage?

by Quartz | Level 8 LMSSAS in SAS Programming
‎11-04-2022 02:22 PM
‎11-04-2022 02:22 PM
Can anyone offer a suggestion on how NOT to sum my percentages in last row?(Visual velow code) I need to divide the Total YTD "YOY Difference" by the Total YTD "AEP Sales 2022" rather than summing p...
Show results in replies (1)
  • ...here the column of percentages is not summed in the Total, by making use of the DISPLAY o...

proc summary - only the total row

by Quartz | Level 8 ywon111 in SAS Programming
‎11-22-2021 11:15 PM
‎11-22-2021 11:15 PM
I have a simple code that creates this output but I need the total. Is there a way to get that added?   Ethnicity Clients A 2822 B 929 C 383 D 471 E 179 Total 4784   proc s...
Show results in replies (1)
  • ...group by bp_status union all select 'Total',count(*) from sashelp.heart ; quit;

Row total, not percent not total

by Pyrite | Level 9 ghartge in SAS Visual Analytics
‎06-28-2020 03:17 PM
‎06-28-2020 03:17 PM
...alculation that takes the "Failed" value and divides it by the "Passed" value in the attached document for each semester (fall and spring) down the column. In other words each row should have a percent for e...
Show results in replies (1)
  • Hello @ghartge ,   You need to use Aggregated Measure. Please try this:  ...

How to calculate running total for certain rows in SAS

by Calcite | Level 5 beihorse in SAS Programming
‎09-27-2023 03:58 AM
‎09-27-2023 03:58 AM
...hange on these date. For dates with changes, I took the number from the last date (male_dirs/female_dirs) and added/deducted the current change (male_dirs_ann/female_dirs_ann). Row 2: total_male = 7 + 1...
Show results in replies (1)
  • ...et board_size_change; by companyid ; if first.companyid then call missing(total_male,total...

Calculating Percentages in Total Row

by Calcite | Level 5 gibsonsg in New SAS User
‎11-27-2018 02:15 PM
‎11-27-2018 02:15 PM
Hi everyone, I want to transform the Table-1 to the Table-2. In “Proc Tabulate”, I cannot calculate to the percentages in the TOTAL row. Is there any simple solution for that? Thanks in advance....
Show results in replies (1)
  • ...fter; VALUE='TOTAL'; endcomp; run;

Proc transpose add grand total row

by Quartz | Level 8 sufiya in SAS Procedures
‎05-20-2020 01:44 AM
‎05-20-2020 01:44 AM
...ummary_One out= summary_first (drop = _Name_) ; BY Plan_type ; id Date ; var CREDIT_AMT ; run;     This is what I want, to add a new row "Total" - summing the total of the 2 rows......
  • Tags:
  • Grand Total
  • new row
  • proc transpose
Show results in replies (3)
  • ...erfectly. I made one small change to get the "Total" to the top row : 1) rbreak after => rbreak b...
  • ....50 $10.36 $1.00 $18.17 ; run; /**** Grand total as summary row in a report*/ proc print data=s...
  • ...um ''; rbreak after / summarize; compute after; if PLAN_TYPE = "" then PLAN_TYPE = 'Total'; e...
  • « Previous
    • 1
    • 2
    • 3
  • Next »
Powered by Khoros