<?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: SAS VA; difference/ratio between two tables that are the same, but using different filters in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-difference-ratio-between-two-tables-that-are-the-same-but/m-p/801204#M15880</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/267357"&gt;@Gust&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've assigned parameters to the filters (button bars in my example) to capture the period selection on each table. Parameters were called FilterA and FilterB.&lt;/P&gt;
&lt;P&gt;Then I've created 4 calculations for FilterA_col1, FilterA_col2, FilterB_col1, and FilterB_col2. Their expressions are very similar, Here is the expression for FilterA_col1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renato_sas_1-1646870368245.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69305i431AB2FA96FCD6D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renato_sas_1-1646870368245.png" alt="Renato_sas_1-1646870368245.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I calculated the ratio between FilterA_col1 and&amp;nbsp;FilterB_col1 and called it "Col1 Ratio", and then did the same for col2. This is the expression for "Col1 Ratio":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renato_sas_2-1646870450418.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69306i7CAB15139C0A6BE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renato_sas_2-1646870450418.png" alt="Renato_sas_2-1646870450418.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the result:&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="Renato_sas_0-1646870095625.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69304iDE854876B70C868A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renato_sas_0-1646870095625.png" alt="Renato_sas_0-1646870095625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is what you wanted.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 00:03:57 GMT</pubDate>
    <dc:creator>Renato_sas</dc:creator>
    <dc:date>2022-03-10T00:03:57Z</dc:date>
    <item>
      <title>SAS VA; difference/ratio between two tables that are the same, but using different filters</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-difference-ratio-between-two-tables-that-are-the-same-but/m-p/800192#M15871</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables that are exactly the same. Same data, row, columns etc.&lt;/P&gt;&lt;P&gt;I have given them a filter each; both for "period". I want to be able to see Period 1 and Period 2 at the same time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there now a way for me to add a third table, which displays the ratio between the cells in the two tables, when I have filtered for different periods in the two tables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example.&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="tables.png" style="width: 250px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69154i6D2C3359743B6EAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="tables.png" alt="tables.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Gustav&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 15:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-difference-ratio-between-two-tables-that-are-the-same-but/m-p/800192#M15871</guid>
      <dc:creator>GustavSandberg</dc:creator>
      <dc:date>2022-03-04T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA; difference/ratio between two tables that are the same, but using different filters</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-difference-ratio-between-two-tables-that-are-the-same-but/m-p/801204#M15880</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/267357"&gt;@Gust&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've assigned parameters to the filters (button bars in my example) to capture the period selection on each table. Parameters were called FilterA and FilterB.&lt;/P&gt;
&lt;P&gt;Then I've created 4 calculations for FilterA_col1, FilterA_col2, FilterB_col1, and FilterB_col2. Their expressions are very similar, Here is the expression for FilterA_col1:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renato_sas_1-1646870368245.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69305i431AB2FA96FCD6D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renato_sas_1-1646870368245.png" alt="Renato_sas_1-1646870368245.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then I calculated the ratio between FilterA_col1 and&amp;nbsp;FilterB_col1 and called it "Col1 Ratio", and then did the same for col2. This is the expression for "Col1 Ratio":&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Renato_sas_2-1646870450418.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69306i7CAB15139C0A6BE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renato_sas_2-1646870450418.png" alt="Renato_sas_2-1646870450418.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the result:&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="Renato_sas_0-1646870095625.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69304iDE854876B70C868A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Renato_sas_0-1646870095625.png" alt="Renato_sas_0-1646870095625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is what you wanted.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 00:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-difference-ratio-between-two-tables-that-are-the-same-but/m-p/801204#M15880</guid>
      <dc:creator>Renato_sas</dc:creator>
      <dc:date>2022-03-10T00:03:57Z</dc:date>
    </item>
  </channel>
</rss>

