<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Counting Rows Based on Value in Another Column in SAS Viya in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960912#M2770</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I do not have access to SAS Studio.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 05:07:12 GMT</pubDate>
    <dc:creator>Yoosf</dc:creator>
    <dc:date>2025-03-05T05:07:12Z</dc:date>
    <item>
      <title>Counting Rows Based on Value in Another Column in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960848#M2767</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I need assistance with counting rows in a SAS Viya table based on a specific value in another column. I have a table with two columns: category_column and value_column. I want to determine the number of rows that belong to each category in category_column.&lt;BR /&gt;For example, if I have the following table:&lt;/P&gt;&lt;P&gt;category_column value_column&lt;BR /&gt;A 10&lt;BR /&gt;B 20&lt;BR /&gt;A 30&lt;BR /&gt;C 40&lt;BR /&gt;B 50&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I want to obtain the following results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;category_column count&lt;BR /&gt;A 2&lt;BR /&gt;B 2&lt;BR /&gt;C 1&lt;BR /&gt;I have tried using the PROC FREQ procedure, but it displays the results in a table, and I need to output the results as a dataset or table that I can use in subsequent steps.&lt;/P&gt;&lt;P&gt;Could someone suggest an efficient method to achieve this in SAS Viya?&lt;/P&gt;&lt;P&gt;Additional Information:&lt;/P&gt;&lt;P&gt;SAS Viya version: i dont know&lt;BR /&gt;I do not have access to SAS Studio.&lt;BR /&gt;Thank you very much for your help."&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 15:47:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960848#M2767</guid>
      <dc:creator>Yoosf</dc:creator>
      <dc:date>2025-03-04T15:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Rows Based on Value in Another Column in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960908#M2769</link>
      <description>&lt;PRE&gt;proc freq data=sashelp.class noprint;
table sex/&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;out=want;&lt;/STRONG&gt;&lt;/FONT&gt;
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Mar 2025 02:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960908#M2769</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-03-05T02:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Rows Based on Value in Another Column in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960912#M2770</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I do not have access to SAS Studio.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 05:07:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960912#M2770</guid>
      <dc:creator>Yoosf</dc:creator>
      <dc:date>2025-03-05T05:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Rows Based on Value in Another Column in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960913#M2771</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/473838"&gt;@Yoosf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;I do not have access to SAS Studio.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just run it the way you're running any other SAS code. What client are you using? Or is this about creating a report in Visual Analytics?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 06:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960913#M2771</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2025-03-05T06:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Rows Based on Value in Another Column in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960915#M2772</link>
      <description>"I have tried using the PROC FREQ procedure, "&lt;BR /&gt;Since you have already run PROC FREQ before, run my code as you did before.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Mar 2025 06:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Counting-Rows-Based-on-Value-in-Another-Column-in-SAS-Viya/m-p/960915#M2772</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-03-05T06:16:20Z</dc:date>
    </item>
  </channel>
</rss>

