<?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: More than 100 nested IFs in SAS Visual Analytics in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763841#M15212</link>
    <description>&lt;P&gt;Perhaps logically it would be OK to remove one of the "ELSE"s in the middle, and turn this into two separate blocks of IF/THEN/ELSE.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 14:08:55 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2021-08-25T14:08:55Z</dc:date>
    <item>
      <title>More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763806#M15205</link>
      <description>&lt;P&gt;Hi, in SAS 8.5.1 I have 107 time series columns and I want to let the user plot one of them. To accomplish this, I use a select box with a parameter and a custom measure like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IF 'par1'p = "var1" RETURN 'var1'n

ELSE IF 'par1'p = "var2" RETURN 'var2'n 

ELSE IF ...

ELSE .

&lt;/PRE&gt;&lt;P&gt;but I would like to know if there's a solution for this error that SAS VA pops up:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;"The expression cannot be saved because an operator is nested too deeply. The current depth is 107 and the maximum depth is 100."&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in advice,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Pierangelo&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 09:56:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763806#M15205</guid>
      <dc:creator>limonov</dc:creator>
      <dc:date>2021-08-25T09:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763821#M15206</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a much easier solution (no coding in VA).&lt;/P&gt;
&lt;P&gt;Transpose your table such that you have 3 columns:&lt;/P&gt;
&lt;P&gt;(date)timestamp + Time Series identifier (name) + value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then put a list-selection-object with the unique / distinct Time Series identifiers / names. All time series identifiers will get a check box in front of them. Then link that&amp;nbsp;list-selection-object with the time series plot with an action on object (filter action).&amp;nbsp; You don't have to map any VA data sources on&amp;nbsp;Time Series identifier (name) because you use the same data source for&amp;nbsp;list-selection-object and time series plot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Time Series plot you should group on&amp;nbsp;Time Series identifier (name) to allow a different line for every identifier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do a SELECT ALL / SELECT NONE (clear all) as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 11:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763821#M15206</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-08-25T11:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763822#M15207</link>
      <description>&lt;P&gt;On top of my previous reply (see above) ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Time Series plot has a default system limit (maximum number of rows it can use, maximum number of points it can display).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can increase that system limit, but take care with doing that.&lt;/P&gt;
&lt;P&gt;Read the following usage note to be aware of the possible implications of raising the limit.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Usage Note &lt;EM&gt;62148: &lt;/EM&gt;High cardinality thresholds in SAS® Visual Analytics 8.x&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/62/148.html" target="_blank"&gt;https://support.sas.com/kb/62/148.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 11:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763822#M15207</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-08-25T11:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763837#M15210</link>
      <description>&lt;P&gt;The 100-level limit on the nesting is fixed and cannot be modified.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 13:46:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763837#M15210</guid>
      <dc:creator>Madelyn_SAS</dc:creator>
      <dc:date>2021-08-25T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763841#M15212</link>
      <description>&lt;P&gt;Perhaps logically it would be OK to remove one of the "ELSE"s in the middle, and turn this into two separate blocks of IF/THEN/ELSE.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 14:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763841#M15212</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-08-25T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763957#M15217</link>
      <description>&lt;P&gt;Restructuring the data would be the best approach and should yield some performance improvement, but yeah it should be possible to break up the chain of IF statements into chunks. For example, you might say something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Not real code, obviously)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF param startsWith "var1"&lt;/P&gt;
&lt;P&gt;RETURN (&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;IF (param = "var1")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;RETURN var1&lt;BR /&gt;&amp;nbsp; &amp;nbsp;ELSE IF (param = "var11")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RETURN var11&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE IF (param = "var12")&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RETURN var12&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ....&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&gt;&amp;nbsp; ELSE IF (param startsWith "var2")&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RETURN ( &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; IF param = "var2" &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; RETURN var2&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE ...&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;
&lt;P&gt;An so on.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 18:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/763957#M15217</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2021-08-25T18:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/816867#M16110</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/401244"&gt;@MarkusWeick&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;that should be interesting for you.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Astrid&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 14:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/816867#M16110</guid>
      <dc:creator>Astrid1</dc:creator>
      <dc:date>2022-06-07T14:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: More than 100 nested IFs in SAS Visual Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/816870#M16111</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/422035"&gt;@Astrid1&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 14:59:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/More-than-100-nested-IFs-in-SAS-Visual-Analytics/m-p/816870#M16111</guid>
      <dc:creator>MarkusWeick</dc:creator>
      <dc:date>2022-06-07T14:59:28Z</dc:date>
    </item>
  </channel>
</rss>

