<?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 How to Calculate Frequency Percent with a Static Denominator in SAS VA? in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/955960#M2713</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m trying to calculate the frequency percent for each category value dynamically using a button bar in SAS Visual Analytics. The "Automatic actions on all objects" option is enabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "Total" (frequency of the group) updates when I select a different value in the button bar which is meaningful. However,&amp;nbsp;the frequency percent for each category is displayed as 100% because, &lt;U&gt;&lt;EM&gt;I think,&lt;/EM&gt;&lt;/U&gt; the denominator is dynamic—it changes to match the total frequency of the selected group. What I’d like to achieve is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Dynamic numerator:&lt;/STRONG&gt; The total frequency of the selected group (based on the button bar selection).&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Static denominator:&lt;/STRONG&gt; The sum of all frequencies across the five groups (unchanged regardless of selection).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Could someone guide me on how to set up this calculation in SAS VA? I’ve included example screenshots to help illustrate the current issue, thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_1-1736795135006.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103690i7CB9282EA3C476D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_1-1736795135006.png" alt="znhnm_1-1736795135006.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_2-1736795153906.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103691iA618AFADF20ACB57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_2-1736795153906.png" alt="znhnm_2-1736795153906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 19:24:55 GMT</pubDate>
    <dc:creator>znhnm</dc:creator>
    <dc:date>2025-01-13T19:24:55Z</dc:date>
    <item>
      <title>How to Calculate Frequency Percent with a Static Denominator in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/955960#M2713</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’m trying to calculate the frequency percent for each category value dynamically using a button bar in SAS Visual Analytics. The "Automatic actions on all objects" option is enabled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "Total" (frequency of the group) updates when I select a different value in the button bar which is meaningful. However,&amp;nbsp;the frequency percent for each category is displayed as 100% because, &lt;U&gt;&lt;EM&gt;I think,&lt;/EM&gt;&lt;/U&gt; the denominator is dynamic—it changes to match the total frequency of the selected group. What I’d like to achieve is:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Dynamic numerator:&lt;/STRONG&gt; The total frequency of the selected group (based on the button bar selection).&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Static denominator:&lt;/STRONG&gt; The sum of all frequencies across the five groups (unchanged regardless of selection).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Could someone guide me on how to set up this calculation in SAS VA? I’ve included example screenshots to help illustrate the current issue, thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_1-1736795135006.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103690i7CB9282EA3C476D4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_1-1736795135006.png" alt="znhnm_1-1736795135006.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_2-1736795153906.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103691iA618AFADF20ACB57/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_2-1736795153906.png" alt="znhnm_2-1736795153906.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 19:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/955960#M2713</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2025-01-13T19:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Frequency Percent with a Static Denominator in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956298#M2722</link>
      <description>&lt;P&gt;Which version of SAS Visual Analytics do you have?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Beginning with 2024.05, parameters can be filled using an expression. By default this expression has no filters applied. So this allows to create the denominator value.&lt;BR /&gt;See more details here&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/vacdc/v_029/vawn/p0er3ews3zq3oan1p19txuy3umhl.htm#p0nusc9g5ivmydn1bfre9iyquq2k" target="_blank"&gt;https://go.documentation.sas.com/doc/en/vacdc/v_029/vawn/p0er3ews3zq3oan1p19txuy3umhl.htm#p0nusc9g5ivmydn1bfre9iyquq2k&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example expression to fill a parameter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunoMueller_0-1737020958725.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103743i9B162E47C7E28078/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrunoMueller_0-1737020958725.png" alt="BrunoMueller_0-1737020958725.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Create an aggregated measure from this parameter:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunoMueller_1-1737021035351.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103744i0CABA9DC15C0B4CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrunoMueller_1-1737021035351.png" alt="BrunoMueller_1-1737021035351.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here&amp;nbsp; used in a report:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BrunoMueller_3-1737021161761.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/103746iC6288B3AE02A7EC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BrunoMueller_3-1737021161761.png" alt="BrunoMueller_3-1737021161761.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 09:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956298#M2722</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2025-01-16T09:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Frequency Percent with a Static Denominator in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956907#M2732</link>
      <description>&lt;P&gt;Hi Bruno,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much! Looks like I can create the parameter and the aggregated measure with the version I have but could you please explain me how you created "freq in percent" variable? Thank you again...&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 19:12:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956907#M2732</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2025-01-22T19:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Frequency Percent with a Static Denominator in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956914#M2733</link>
      <description>Sorry, I was trying to delete my follow up question and mark your answer as the solution but instead I marked my question as the solution by mistake, and I don't think I can change that. Thanks for your reply, it was really helpful.</description>
      <pubDate>Wed, 22 Jan 2025 20:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956914#M2733</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2025-01-22T20:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Calculate Frequency Percent with a Static Denominator in SAS VA?</title>
      <link>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956928#M2734</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/411017"&gt;@znhnm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Sorry, I was trying to delete my follow up question and mark your answer as the solution but instead I marked my question as the solution by mistake, and I don't think I can change that. Thanks for your reply, it was really helpful.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First unselect the response you currently have selected as the answer. Then you can pick a different response to set as the answer.&amp;nbsp; Then you could delete the other response if you wanted.&amp;nbsp; But why?&amp;nbsp; If it is because you figured it out why tell us so someone else reading this thread can learn.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 22:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/How-to-Calculate-Frequency-Percent-with-a-Static-Denominator-in/m-p/956928#M2734</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-22T22:23:20Z</dc:date>
    </item>
  </channel>
</rss>

