<?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 Programing for new calculated iteam in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Programing-for-new-calculated-iteam/m-p/583430#M12969</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please understand the query bit correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one value 'X' and for that i have thousands of observations (Values basically lie withing 0 to 200)&lt;/P&gt;&lt;P&gt;Now what i want to build is a programing to set diffrent limits to this 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example - I want to see how many observations are above 100 (Value of X)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In same program I should be able to see this results if i apply filter to see all the observations above 75 or lets say all the observations above 50 and so on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I wrote following program (I know somehow i need to get rid of this ELSE ...but quetions is how?).&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;PRE&gt;&lt;CODE class=" language-sas"&gt;IF ( 'X' &amp;gt; 100 )
RETURN 'For 100'
ELSE ( 
  IF ( 'X' &amp;gt; 75 )
  RETURN 'For 75'
  ELSE ( 
   
 IF ( 'X' &amp;gt; 50 )
    RETURN 'For 50'
    ELSE 'other' ) )W&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hat results it is showing is...For the limit of 100 it is showing right results ..but when i tried to see results for 50 or 75..it is showing me all the observations above 50 or 75 but below 100.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i&amp;nbsp; want to see is all the observation above 75 and 50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help for this on bit urgent basis.&lt;/P&gt;&lt;P&gt;I will really appriciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Saurabh&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 10:49:11 GMT</pubDate>
    <dc:creator>Saurabh77</dc:creator>
    <dc:date>2019-08-23T10:49:11Z</dc:date>
    <item>
      <title>Programing for new calculated iteam</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Programing-for-new-calculated-iteam/m-p/583430#M12969</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please understand the query bit correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one value 'X' and for that i have thousands of observations (Values basically lie withing 0 to 200)&lt;/P&gt;&lt;P&gt;Now what i want to build is a programing to set diffrent limits to this 'X'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example - I want to see how many observations are above 100 (Value of X)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In same program I should be able to see this results if i apply filter to see all the observations above 75 or lets say all the observations above 50 and so on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I wrote following program (I know somehow i need to get rid of this ELSE ...but quetions is how?).&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;PRE&gt;&lt;CODE class=" language-sas"&gt;IF ( 'X' &amp;gt; 100 )
RETURN 'For 100'
ELSE ( 
  IF ( 'X' &amp;gt; 75 )
  RETURN 'For 75'
  ELSE ( 
   
 IF ( 'X' &amp;gt; 50 )
    RETURN 'For 50'
    ELSE 'other' ) )W&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hat results it is showing is...For the limit of 100 it is showing right results ..but when i tried to see results for 50 or 75..it is showing me all the observations above 50 or 75 but below 100.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i&amp;nbsp; want to see is all the observation above 75 and 50.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help for this on bit urgent basis.&lt;/P&gt;&lt;P&gt;I will really appriciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Saurabh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 10:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Programing-for-new-calculated-iteam/m-p/583430#M12969</guid>
      <dc:creator>Saurabh77</dc:creator>
      <dc:date>2019-08-23T10:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Programing for new calculated iteam</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Programing-for-new-calculated-iteam/m-p/583483#M12973</link>
      <description>&lt;P&gt;If you are using VA7.4 or above you can use parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. create a new numeric parameter&lt;/P&gt;
&lt;P&gt;2. assign the parameter to an input object (like slider, input text)&lt;/P&gt;
&lt;P&gt;3. create a filter either directly on the data (data set filter) or on your object. The filter should look something like "x &amp;gt; [parameter name]"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work so if you set the parameter to 75 the data shown will be greater than 75.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 14:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Programing-for-new-calculated-iteam/m-p/583483#M12973</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-08-23T14:22:52Z</dc:date>
    </item>
  </channel>
</rss>

