<?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 How do I replace . (missing) with 0 in a Aggregated Mesaure? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765510#M15239</link>
    <description>&lt;P&gt;This is my simple calculation:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X = &lt;EM&gt;Sum [_ByGroup_] ('&lt;STRONG&gt;y&lt;/STRONG&gt;'n) - Sum [_ByGroup_] ('&lt;STRONG&gt;z&lt;/STRONG&gt;'n)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If either y or z is missing then x become missing. Here is an 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="Pili1100_0-1630530620585.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63228i89EE15712B9DB225/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pili1100_0-1630530620585.png" alt="Pili1100_0-1630530620585.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I want y = 9, z = 0 -&amp;gt; X = 9&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Otherwise I will Group the vales in SAS EG before uploading to Viya.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 21:13:33 GMT</pubDate>
    <dc:creator>Pili1100</dc:creator>
    <dc:date>2021-09-01T21:13:33Z</dc:date>
    <item>
      <title>How do I replace . (missing) with 0 in a Aggregated Mesaure?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765510#M15239</link>
      <description>&lt;P&gt;This is my simple calculation:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X = &lt;EM&gt;Sum [_ByGroup_] ('&lt;STRONG&gt;y&lt;/STRONG&gt;'n) - Sum [_ByGroup_] ('&lt;STRONG&gt;z&lt;/STRONG&gt;'n)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If either y or z is missing then x become missing. Here is an 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="Pili1100_0-1630530620585.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63228i89EE15712B9DB225/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pili1100_0-1630530620585.png" alt="Pili1100_0-1630530620585.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I want y = 9, z = 0 -&amp;gt; X = 9&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Otherwise I will Group the vales in SAS EG before uploading to Viya.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 21:13:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765510#M15239</guid>
      <dc:creator>Pili1100</dc:creator>
      <dc:date>2021-09-01T21:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace . (missing) with 0 in a Aggregated Mesaure?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765529#M15241</link>
      <description>&lt;P&gt;try using ifn function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  x=y-ifn(missing(z),0,z);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Sep 2021 02:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765529#M15241</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-09-02T02:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace . (missing) with 0 in a Aggregated Mesaure?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765633#M15242</link>
      <description>&lt;P&gt;In the Visual Analytics expression editor, you would use the Missing() operator, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( 'Invoice'n Missing )&lt;BR /&gt;RETURN 0&lt;BR /&gt;ELSE 'Invoice'n&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 13:41:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765633#M15242</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2021-09-02T13:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I replace . (missing) with 0 in a Aggregated Mesaure?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765871#M15251</link>
      <description>&lt;P&gt;Thx! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 14:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-do-I-replace-missing-with-0-in-a-Aggregated-Mesaure/m-p/765871#M15251</guid>
      <dc:creator>Pili1100</dc:creator>
      <dc:date>2021-09-03T14:55:26Z</dc:date>
    </item>
  </channel>
</rss>

