<?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: Calculate total of a measure while ignoring filters in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-total-of-a-measure-while-ignoring-filters/m-p/884309#M17385</link>
    <description>&lt;P&gt;1) Provide some example data (in form of a data step) we could use to help you.&lt;/P&gt;
&lt;P&gt;2) What code did you test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2023 11:28:05 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2023-07-11T11:28:05Z</dc:date>
    <item>
      <title>Calculate total of a measure while ignoring filters</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-total-of-a-measure-while-ignoring-filters/m-p/884307#M17384</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a bit of a special need. I would like to calculate the % of a calculated item but while ignoring the filters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example I have the following Data&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture1.png" style="width: 355px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85714iD7B65E0CAD57AB24/image-dimensions/355x120?v=v2" width="355" height="120" role="button" title="Capture1.png" alt="Capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I want to filter on the European Countries, I would like the % to take the total of value (580) and not 350 (150+200).&lt;/P&gt;
&lt;P&gt;In other words the % should be like this : Sum(For_Group) Value / Sum (For_All ignoring the filter) Value like this.&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-center" image-alt="Capture2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85715iC7A776B2E452D553/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture2.png" alt="Capture2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-total-of-a-measure-while-ignoring-filters/m-p/884307#M17384</guid>
      <dc:creator>Achraf_Ougdal</dc:creator>
      <dc:date>2023-07-11T11:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate total of a measure while ignoring filters</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-total-of-a-measure-while-ignoring-filters/m-p/884309#M17385</link>
      <description>&lt;P&gt;1) Provide some example data (in form of a data step) we could use to help you.&lt;/P&gt;
&lt;P&gt;2) What code did you test?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:28:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-total-of-a-measure-while-ignoring-filters/m-p/884309#M17385</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-07-11T11:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate total of a measure while ignoring filters</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-total-of-a-measure-while-ignoring-filters/m-p/884328#M17386</link>
      <description>&lt;P&gt;Hello, Unfortunately, I am unable to provide any data example. I am working on SAS Visual Analaytics on SAS 9.4 (Windows).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the Expression I used to calculate the % :&amp;nbsp;( Sum [_ByGroup_] ('Value'n) / Sum [_ForAll_] (&lt;BR /&gt;'Value'n) ) * 100&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the problem is when I filter on the Continent the&amp;nbsp;Sum [_ForAll_] ('Value'n) takes the total of the continent (It's vulnerable to the filter) I want it to ignore the filter and take the Sum(Value) for all countries in all continents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-total-of-a-measure-while-ignoring-filters/m-p/884328#M17386</guid>
      <dc:creator>Achraf_Ougdal</dc:creator>
      <dc:date>2023-07-11T12:31:33Z</dc:date>
    </item>
  </channel>
</rss>

