<?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: Ignore filter functionality for (non-periodic) aggregate measure calculations in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Ignore-filter-functionality-for-non-periodic-aggregate-measure/m-p/841049#M16633</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you're suggesting summing over the entire table and remerging the result with the original table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That will work for the basic table I put in my post as an illustration. Really that table is already a cross tab summarising more detailed underlying data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevertheless, in the absence of an ignore filter type functionality,&amp;nbsp; a slightly more complex "group-by-remerge" type approach (either within VA or in the data prep phase) is probably the way to do it so thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 00:39:16 GMT</pubDate>
    <dc:creator>Rabbott89</dc:creator>
    <dc:date>2022-10-27T00:39:16Z</dc:date>
    <item>
      <title>Ignore filter functionality for (non-periodic) aggregate measure calculations</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Ignore-filter-functionality-for-non-periodic-aggregate-measure/m-p/838887#M16566</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;My first post so please forgive/educate me on any posting bad practice. This is really a general functionality point but I'll explain it within the context of what I'm trying to do.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I am looking to include measures in a SAS VA 8.4 report to show, for example, the number of phone calls answered by an agent as a percentage of the average number of phone calls answered by all agents in the same division.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;This is easy enough to do. Using the AggTable operator I can create a measure that always shows the Division level average and then use that as the denominator in my percentage of calculation. For example, it's easy enough to create a cross tab object that looks like this (made up numbers):&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Agent Division&lt;/TD&gt;&lt;TD&gt;Agent&lt;/TD&gt;&lt;TD&gt;Calls Answered&lt;/TD&gt;&lt;TD&gt;Division Avg&lt;/TD&gt;&lt;TD&gt;% of Division Avg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Division A&lt;/TD&gt;&lt;TD&gt;Agent 1&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;90.91%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Division A&lt;/TD&gt;&lt;TD&gt;Agent 2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;72.73%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Division A&lt;/TD&gt;&lt;TD&gt;Agent 3&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Division A&lt;/TD&gt;&lt;TD&gt;Agent 4&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;136.36%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;The issue I have is that I would like users of the report to be able to filter for/select specific agents but if I introduce a report/page/object level filter for Agent, that filter appears to apply before the (innermost) AggTable calculation is performed such that, if someone were to filter for say Agent 2 they would NOT see the following desired result:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Agent Division&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Agent&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Calls Answered&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Division Avg&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;% of Division Avg&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Division A&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Agent 2&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;8&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;11&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;72.73%&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;rather they would simply see:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Agent Division&lt;/TD&gt;&lt;TD&gt;Agent&lt;/TD&gt;&lt;TD&gt;Calls Answered&lt;/TD&gt;&lt;TD&gt;Division Avg&lt;/TD&gt;&lt;TD&gt;% of Division Avg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Division A&lt;/TD&gt;&lt;TD&gt;Agent 2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;100.00%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;SPAN&gt;because the filtering has already taken place prior to the Division Avg calculation. Of course I can put the Division Avg in a separate unfiltered object and get the right answer (which appears to be all they wanted to do in this closed thread: &lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-exclude-an-object-from-being-filtered-by-a-report-prompt/td-p/619601" target="_self"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-exclude-an-object-from-being-filtered-by-a-report-prompt/td-p/619601&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;) but what I really want to do is use it to get a "normalised" score within the same object.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Unlike for some of the periodic aggregate operators, there doesn't appear to be functionality within SAS VA 8.4 to ignore (certain) filters in AggTable calculations. Is this planned for a future release? Am I missing a trick here?&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Without it I can't see how you can display group level amounts in an object/page/report that's filtered to a member/sub-population of that group (which can't be that rare of a thing to want to do).&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;I could perform the group level calculations in the data prep phase but then they are not dynamic (for example users couldn't alter the time period over which the calculations are performed via a date slider).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Any help would be much appreciated.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 01:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Ignore-filter-functionality-for-non-periodic-aggregate-measure/m-p/838887#M16566</guid>
      <dc:creator>Rabbott89</dc:creator>
      <dc:date>2022-10-17T01:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore filter functionality for (non-periodic) aggregate measure calculations</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Ignore-filter-functionality-for-non-periodic-aggregate-measure/m-p/839074#M16567</link>
      <description>You can achieve this by doing the following.&lt;BR /&gt;Create a dummy variable character like "all".&lt;BR /&gt;Create an AGGREGATED DATA TABLE using the dummy variable, the incoming phone calls, the answered phone calls in the sum aggregation context.&lt;BR /&gt;Then left join the original table with the aggregated table on the dummy variable.&lt;BR /&gt;Calculate the percentage in the joined table.&lt;BR /&gt;Apply the filter to the joined table.&lt;BR /&gt;Done</description>
      <pubDate>Mon, 17 Oct 2022 20:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Ignore-filter-functionality-for-non-periodic-aggregate-measure/m-p/839074#M16567</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2022-10-17T20:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Ignore filter functionality for (non-periodic) aggregate measure calculations</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Ignore-filter-functionality-for-non-periodic-aggregate-measure/m-p/841049#M16633</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/127222"&gt;@acordes&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you're suggesting summing over the entire table and remerging the result with the original table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That will work for the basic table I put in my post as an illustration. Really that table is already a cross tab summarising more detailed underlying data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nevertheless, in the absence of an ignore filter type functionality,&amp;nbsp; a slightly more complex "group-by-remerge" type approach (either within VA or in the data prep phase) is probably the way to do it so thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 00:39:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Ignore-filter-functionality-for-non-periodic-aggregate-measure/m-p/841049#M16633</guid>
      <dc:creator>Rabbott89</dc:creator>
      <dc:date>2022-10-27T00:39:16Z</dc:date>
    </item>
  </channel>
</rss>

