<?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 Issue with variable parameters and complex expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Issue-with-variable-parameters-and-complex-expression/m-p/744513#M265797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Recently did a server move for application -- old one was last saved in version 10.&amp;nbsp;&amp;nbsp; The below, as well as several other similar expressions are coming up as $0.&amp;nbsp; I didn't create the original - trying to make sense of it now to troubleshoot.&amp;nbsp; Seems that SecondaryDimensionality was used so that when you collapse year, you see only end of year on hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that vCalendar is being used because there are multiple calendars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: &lt;/P&gt;&lt;P&gt;eOH_Units = sum({&amp;lt;$($1)&amp;gt;} [On Hand Units] $($2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression in pivot table (attached):&lt;/P&gt;&lt;P&gt;IF(SecondaryDimensionality() = 2 ,$(eOH_Units),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SecondaryDimensionality() = 1 AND (GetSelectedCount([Week Ending Date]) &amp;lt;&amp;gt; 0 OR GetSelectedCount([$(=vCalendar&amp;amp; '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekNum')]) &amp;lt;&amp;gt; 0 OR GetSelectedCount([$(=vCalendar&amp;amp;' Month Name Short')]) &amp;lt;&amp;gt; 0 OR GetSelectedCount([$(=vCalendar&amp;amp;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Season')]) OR GetSelectedCount([$(=vCalendar&amp;amp;' QT')]) &amp;lt;&amp;gt; 0) , $(eOH_Units(vMaxWeekNumber))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , $(eOH_Units(,='*[' &amp;amp; vCalendar &amp;amp;' EOY_Flag]')))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look and offer suggestions.&amp;nbsp; First attachment is the correct (old) app and the second is the one with issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2015 19:00:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-04T19:00:29Z</dc:date>
    <item>
      <title>Issue with variable parameters and complex expression.</title>
      <link>https://community.qlik.com/t5/QlikView/Issue-with-variable-parameters-and-complex-expression/m-p/744513#M265797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Recently did a server move for application -- old one was last saved in version 10.&amp;nbsp;&amp;nbsp; The below, as well as several other similar expressions are coming up as $0.&amp;nbsp; I didn't create the original - trying to make sense of it now to troubleshoot.&amp;nbsp; Seems that SecondaryDimensionality was used so that when you collapse year, you see only end of year on hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note that vCalendar is being used because there are multiple calendars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable: &lt;/P&gt;&lt;P&gt;eOH_Units = sum({&amp;lt;$($1)&amp;gt;} [On Hand Units] $($2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression in pivot table (attached):&lt;/P&gt;&lt;P&gt;IF(SecondaryDimensionality() = 2 ,$(eOH_Units),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(SecondaryDimensionality() = 1 AND (GetSelectedCount([Week Ending Date]) &amp;lt;&amp;gt; 0 OR GetSelectedCount([$(=vCalendar&amp;amp; '&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WeekNum')]) &amp;lt;&amp;gt; 0 OR GetSelectedCount([$(=vCalendar&amp;amp;' Month Name Short')]) &amp;lt;&amp;gt; 0 OR GetSelectedCount([$(=vCalendar&amp;amp;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Season')]) OR GetSelectedCount([$(=vCalendar&amp;amp;' QT')]) &amp;lt;&amp;gt; 0) , $(eOH_Units(vMaxWeekNumber))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , $(eOH_Units(,='*[' &amp;amp; vCalendar &amp;amp;' EOY_Flag]')))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look and offer suggestions.&amp;nbsp; First attachment is the correct (old) app and the second is the one with issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 19:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Issue-with-variable-parameters-and-complex-expression/m-p/744513#M265797</guid>
      <dc:creator />
      <dc:date>2015-03-04T19:00:29Z</dc:date>
    </item>
  </channel>
</rss>

