<?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: Difference between percentage of two groups in a category in SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Difference-between-percentage-of-two-groups-in-a-category-in-SAS/m-p/557376#M12432</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265393"&gt;@haneesh312&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried creating two new calculated items, one for &lt;EM&gt;A&lt;/EM&gt;s and one for &lt;EM&gt;B&lt;/EM&gt;s, and then calculate the difference?&lt;/P&gt;
&lt;P&gt;Something along the lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New calculated item for &lt;EM&gt;A&lt;/EM&gt;s:&lt;/P&gt;
&lt;PRE&gt;IF (Category = 'A' )
RETURN Measure
ELSE 0&lt;/PRE&gt;
&lt;P&gt;And a similar for &lt;EM&gt;B&lt;/EM&gt;s.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then a new measure to calculate the difference between these two. Of course you need to take care of the &lt;EM&gt;percentage of total &lt;/EM&gt;also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2019 08:02:32 GMT</pubDate>
    <dc:creator>PetriRoine</dc:creator>
    <dc:date>2019-05-09T08:02:32Z</dc:date>
    <item>
      <title>Difference between percentage of two groups in a category in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Difference-between-percentage-of-two-groups-in-a-category-in-SAS/m-p/553535#M12330</link>
      <description>&lt;P&gt;I would like to aggregated field , which is the difference in percentages between two groups in a category using a calculated fiedls in SAS VA .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;C&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;BR /&gt;A&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% of A -60%&lt;/P&gt;&lt;P&gt;% of B - 30%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;difference -30%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want difference field&amp;nbsp; to be caluculated in a field and should be able drill up and down&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2019 07:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Difference-between-percentage-of-two-groups-in-a-category-in-SAS/m-p/553535#M12330</guid>
      <dc:creator>haneesh312</dc:creator>
      <dc:date>2019-04-24T07:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between percentage of two groups in a category in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Difference-between-percentage-of-two-groups-in-a-category-in-SAS/m-p/557376#M12432</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265393"&gt;@haneesh312&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you tried creating two new calculated items, one for &lt;EM&gt;A&lt;/EM&gt;s and one for &lt;EM&gt;B&lt;/EM&gt;s, and then calculate the difference?&lt;/P&gt;
&lt;P&gt;Something along the lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;New calculated item for &lt;EM&gt;A&lt;/EM&gt;s:&lt;/P&gt;
&lt;PRE&gt;IF (Category = 'A' )
RETURN Measure
ELSE 0&lt;/PRE&gt;
&lt;P&gt;And a similar for &lt;EM&gt;B&lt;/EM&gt;s.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then a new measure to calculate the difference between these two. Of course you need to take care of the &lt;EM&gt;percentage of total &lt;/EM&gt;also.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 08:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Difference-between-percentage-of-two-groups-in-a-category-in-SAS/m-p/557376#M12432</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2019-05-09T08:02:32Z</dc:date>
    </item>
  </channel>
</rss>

