<?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: Variable with parameter not evaluated in IF statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1684245#M450275</link>
    <description>&lt;P&gt;Are there any comments within the variable? If yes, remove them.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Thu, 12 Mar 2020 16:45:27 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2020-03-12T16:45:27Z</dc:date>
    <item>
      <title>Variable with parameter not evaluated in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1683869#M450263</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I have created a variable as follow :&lt;/P&gt;&lt;P&gt;NS_CML = (sum( aggr(Above( Sum({&amp;lt;Year={$(v_MaxYear),$(v_MaxYearLY)}&amp;gt;} Sales),$1,$2),(RRC,(TEXT,ASCENDING)),(Month,(NUMERIC,ASCENDING)))) )&lt;/P&gt;&lt;P&gt;the variable is working fine inside the pivot table, the values are displayed correctly as follow :&amp;nbsp;$(NS_CML(0,12))&lt;/P&gt;&lt;P&gt;but it is not evaluated inside the IF statement as the following expression :&lt;/P&gt;&lt;P&gt;if($(NS_CML(0,12)) &amp;lt; 0 , 0 , 1 )&lt;/P&gt;&lt;P&gt;could you please help identify why the condition of that variable is not evaluated (when less than zero, it's zero, else it's one).&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1683869#M450263</guid>
      <dc:creator>YAMAMO</dc:creator>
      <dc:date>2024-11-16T18:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with parameter not evaluated in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1684194#M450274</link>
      <description>&lt;P&gt;Are you using the if statement in the same pivot table?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:03:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1684194#M450274</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-12T15:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with parameter not evaluated in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1684245#M450275</link>
      <description>&lt;P&gt;Are there any comments within the variable? If yes, remove them.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 16:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1684245#M450275</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-03-12T16:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with parameter not evaluated in IF statement</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1691792#M450664</link>
      <description>&lt;P&gt;Have a read through the following Design Blog post, may provide some further things to try:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/QlikView-Quoteology/ba-p/1476029" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/QlikView-Quoteology/ba-p/1476029&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If one of the other two posts got you what you needed, please be sure to return to your thread and properly close it out by using the Accept as Solution button on the post that helped.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 21:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-parameter-not-evaluated-in-IF-statement/m-p/1691792#M450664</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-04-07T21:05:04Z</dc:date>
    </item>
  </channel>
</rss>

