<?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: Calculations on measure by category within same column of data in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculations-on-measure-by-category-within-same-column-of-data/m-p/513354#M11468</link>
    <description>&lt;P&gt;Ah yes, that works. Didn't think to do the counts in VA. Perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just for reference, here is the actual text that is working for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF ( 'STATUS'n In ('SOLD') )&lt;BR /&gt;RETURN 'COUNT'n&lt;BR /&gt;ELSE 0&lt;/P&gt;</description>
    <pubDate>Thu, 15 Nov 2018 15:07:08 GMT</pubDate>
    <dc:creator>sseanhennessyy</dc:creator>
    <dc:date>2018-11-15T15:07:08Z</dc:date>
    <item>
      <title>Calculations on measure by category within same column of data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculations-on-measure-by-category-within-same-column-of-data/m-p/512998#M11465</link>
      <description>&lt;P&gt;I'm wondering if there is anyway to do a calculation by specific groups within the same column of data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have the following data set, I want to be able to sum the Count column by Status then divide the sum of sold status count by the sum of proposed status count. Is this possible is VA?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Status&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count&lt;/P&gt;&lt;P&gt;Proposed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;Sold&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;Proposed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;Sold&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&lt;/P&gt;&lt;P&gt;Proposed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;Proposed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;know I can manipulate the data prior to bring it into VA and&amp;nbsp;columns for 'Sold Count' and 'Proposed Count' and would be able to do the calculation that way, just curious if there is another way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Nov 2018 16:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculations-on-measure-by-category-within-same-column-of-data/m-p/512998#M11465</guid>
      <dc:creator>sseanhennessyy</dc:creator>
      <dc:date>2018-11-14T16:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations on measure by category within same column of data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculations-on-measure-by-category-within-same-column-of-data/m-p/513249#M11467</link>
      <description>&lt;P&gt;I think you need to create two calculated items one for each status and then create a calculation between them&lt;/P&gt;
&lt;P&gt;Var 1: if status = 'sold' then count else . | Aggregation = count.&lt;/P&gt;
&lt;P&gt;Var 2: if status = 'proposed' then count else . | Aggregation = count.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Var 3: var 1 / var 2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have not seen any example (yet) on how to do it using just one column &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 11:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculations-on-measure-by-category-within-same-column-of-data/m-p/513249#M11467</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-11-15T11:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculations on measure by category within same column of data</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculations-on-measure-by-category-within-same-column-of-data/m-p/513354#M11468</link>
      <description>&lt;P&gt;Ah yes, that works. Didn't think to do the counts in VA. Perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just for reference, here is the actual text that is working for me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF ( 'STATUS'n In ('SOLD') )&lt;BR /&gt;RETURN 'COUNT'n&lt;BR /&gt;ELSE 0&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 15:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculations-on-measure-by-category-within-same-column-of-data/m-p/513354#M11468</guid>
      <dc:creator>sseanhennessyy</dc:creator>
      <dc:date>2018-11-15T15:07:08Z</dc:date>
    </item>
  </channel>
</rss>

