<?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 What is the Value equivalent of No selection for a drop down list? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/What-is-the-Value-equivalent-of-No-selection-for-a-drop-down/m-p/777797#M15561</link>
    <description>&lt;P&gt;I'm passing the selected values of the drop-down into the parameter.&lt;/P&gt;
&lt;P&gt;When the selection is cleared , the parameter displays "&lt;SPAN&gt;&amp;lt;No item selected&amp;gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm using the parameter in a calculation. It seems that the calculation is retaining the result for the first condition of the IF-ELSE statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hence I wanted to know the equivalent value for&amp;nbsp;"&amp;lt;No item selected&amp;gt;" to ensure I get the correct results.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Nov 2021 22:40:29 GMT</pubDate>
    <dc:creator>johnfrytz</dc:creator>
    <dc:date>2021-11-01T22:40:29Z</dc:date>
    <item>
      <title>What is the Value equivalent of No selection for a drop down list?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/What-is-the-Value-equivalent-of-No-selection-for-a-drop-down/m-p/777797#M15561</link>
      <description>&lt;P&gt;I'm passing the selected values of the drop-down into the parameter.&lt;/P&gt;
&lt;P&gt;When the selection is cleared , the parameter displays "&lt;SPAN&gt;&amp;lt;No item selected&amp;gt;".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm using the parameter in a calculation. It seems that the calculation is retaining the result for the first condition of the IF-ELSE statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hence I wanted to know the equivalent value for&amp;nbsp;"&amp;lt;No item selected&amp;gt;" to ensure I get the correct results.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 22:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/What-is-the-Value-equivalent-of-No-selection-for-a-drop-down/m-p/777797#M15561</guid>
      <dc:creator>johnfrytz</dc:creator>
      <dc:date>2021-11-01T22:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is the Value equivalent of No selection for a drop down list?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/What-is-the-Value-equivalent-of-No-selection-for-a-drop-down/m-p/777976#M15573</link>
      <description>&lt;P&gt;When there is no selection in a single-valued parameter, it produces a missing value. For numeric parameters, it is a dot&amp;nbsp;&lt;FONT face="courier new,courier"&gt;.&lt;/FONT&gt;, for characters, it is an empty space &lt;FONT face="courier new,courier"&gt;' '&lt;/FONT&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can simplify this by using the &lt;FONT face="courier new,courier"&gt;missing()&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;notmissing()&lt;/FONT&gt; functions, which will automatically handle both numeric or character values. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if(missing('parameter'p) ) return 1 else 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are on SAS Viya, the &lt;FONT face="courier new,courier"&gt;isSet()&lt;/FONT&gt; function is a better alternative. &lt;FONT face="courier new,courier"&gt;isSet()&lt;/FONT&gt; returns True or False (1 or 0) depending on if a parameter has been selected. It can be used to get really great feedback on how someone is using the report. Plus, it works for both single-valued and multi-valued parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if(isSet('parameter'p) ) return 1 else 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Confirming Parameter Values&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case you ever need to confirm what the value of a parameter actually is in the background, here's a simple trick:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a new calculated column and simply drag in the parameter:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Stu_SAS_0-1635873630770.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65320iE65D68F0223E1832/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Stu_SAS_0-1635873630770.png" alt="Stu_SAS_0-1635873630770.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Add a list table and add your calculated column as a row&lt;/LI&gt;
&lt;LI&gt;Select different values of your parameter to view its raw value 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parameter-value-test.gif" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65322i23F4A6E091513ED7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parameter-value-test.gif" alt="parameter-value-test.gif" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 02 Nov 2021 17:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/What-is-the-Value-equivalent-of-No-selection-for-a-drop-down/m-p/777976#M15573</guid>
      <dc:creator>Stu_SAS</dc:creator>
      <dc:date>2021-11-02T17:29:49Z</dc:date>
    </item>
  </channel>
</rss>

