<?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 Visual Analytics: Missing values affecting Aggregations in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Missing-values-affecting-Aggregations/m-p/308603#M5733</link>
    <description>Update: I decided to move those columns and calculate/generate them at the database level. Still same issue.</description>
    <pubDate>Tue, 01 Nov 2016 19:17:54 GMT</pubDate>
    <dc:creator>eslna</dc:creator>
    <dc:date>2016-11-01T19:17:54Z</dc:date>
    <item>
      <title>SAS Visual Analytics: Missing values affecting Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Missing-values-affecting-Aggregations/m-p/308559#M5731</link>
      <description>&lt;P&gt;I may or may not have found a bug in SAS VA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have columns that are coming from Oracle and colums that are calulated at the Data Query level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the calculated columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column a:&amp;nbsp;CASE WHEN &amp;nbsp;(O_OVT_COMPTIME_FV.NC_PAYCODE IN ('Comp Time Earned', 'Comp Time Earned II')) THEN &amp;nbsp;O_OVT_COMPTIME_FV.HOURS_EARNED &amp;nbsp;END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column b:CASE WHEN &amp;nbsp;(O_OVT_COMPTIME_FV.NC_PAYCODE IN ('Overtime', 'Overtime SD', 'OT ADJ', 'OT SD ADJ')) THEN &amp;nbsp;O_OVT_COMPTIME_FV.HOURS_EARNED END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column c: CASE WHEN &amp;nbsp;(O_OVT_COMPTIME_FV.NC_PAYCODE IN ('Regular', 'REG ADJ', 'REG SD ADJ', 'Regular SD')) THEN &amp;nbsp;O_OVT_COMPTIME_FV.HOURS_EARNED &amp;nbsp;END&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the Report, I have created 3 aggregate fields based on each of these columns, the aggregate fields are the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum [_ByGroup_] ('Column a'n)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum [_ByGroup_] ('&lt;/SPAN&gt;&lt;SPAN&gt;Column b&lt;/SPAN&gt;&lt;SPAN&gt;'n)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum [_ByGroup_] ('&lt;SPAN&gt;Column c&lt;/SPAN&gt;&lt;SPAN&gt;'n)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have a Table object(same thing happens in a crosstab) that is supposed to display these aggregate values by the group and&amp;nbsp;if all 3 columns mentioned above have data, then the row is displayed with no problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have noticed that records that have missing values in, say Column a, wont show up in the table object(or the crosstab) once I add Column a to the object. If i remove column a from the table object,&amp;nbsp;the row shows up again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something about that SUM is causing the record to dissapear from the table object, and no, i dont have any filters on that particular object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried doing an IF check in that aggregate field, but it will not let me check "Column a" against missing or zero, it forces me to use "&lt;SPAN&gt;Sum [_ByGroup_] ('&lt;/SPAN&gt;&lt;SPAN&gt;Column a&lt;/SPAN&gt;&lt;SPAN&gt;'n)" in the comparison.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have also tried adding an Else 0 to all the column calculations in the data query but that doesnt help either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2016 16:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Missing-values-affecting-Aggregations/m-p/308559#M5731</guid>
      <dc:creator>eslna</dc:creator>
      <dc:date>2016-11-01T16:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics: Missing values affecting Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Missing-values-affecting-Aggregations/m-p/308603#M5733</link>
      <description>Update: I decided to move those columns and calculate/generate them at the database level. Still same issue.</description>
      <pubDate>Tue, 01 Nov 2016 19:17:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Missing-values-affecting-Aggregations/m-p/308603#M5733</guid>
      <dc:creator>eslna</dc:creator>
      <dc:date>2016-11-01T19:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Visual Analytics: Missing values affecting Aggregations</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Missing-values-affecting-Aggregations/m-p/308832#M5744</link>
      <description>I feel like I am talking to myself since no one responded but basically what I am trying to do, which is filter a table object by an aggregated value, is not possible in SAS VA 7.1, but good news is it IS possible in 7.3 judging by this document: &lt;A href="http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#p0989k7vl59ugbn1183c1u36lvcn.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#p0989k7vl59ugbn1183c1u36lvcn.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;So i will mark this ticket as solved and work on getting our environment upgraded.</description>
      <pubDate>Wed, 02 Nov 2016 18:59:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-Visual-Analytics-Missing-values-affecting-Aggregations/m-p/308832#M5744</guid>
      <dc:creator>eslna</dc:creator>
      <dc:date>2016-11-02T18:59:01Z</dc:date>
    </item>
  </channel>
</rss>

