<?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 Problem with Parameterized variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13424#M2201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help regarding parameterized variable. I am creating a variable as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(BO_FUND_CLOSURE_DATE&amp;gt;=Date($1) and BO_FUND_CLOSURE_DATE&amp;lt;=Date($2),Interval(BO_FUND_CLOSURE_DATE - Date($1),'d'), (Date($2) - Date($1) +1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when i am trying to call it in a textbox it gives me proper values but when the same is pulled into chart as an pick match expression then it gives me null values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick(Match(ValueList(vCashPlcmtLabel1,vCashPlcmntLabel2),'Current Year','Previous Year'),$(vAvgAUM(vFromDate,vToDate)),$(vAvgAUM(vPrevFromDate,vPrevToDate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help as it is acting as a showstopper.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2018 08:36:18 GMT</pubDate>
    <dc:creator>saimahasan</dc:creator>
    <dc:date>2018-05-10T08:36:18Z</dc:date>
    <item>
      <title>Problem with Parameterized variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13424#M2201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need your help regarding parameterized variable. I am creating a variable as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(BO_FUND_CLOSURE_DATE&amp;gt;=Date($1) and BO_FUND_CLOSURE_DATE&amp;lt;=Date($2),Interval(BO_FUND_CLOSURE_DATE - Date($1),'d'), (Date($2) - Date($1) +1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and when i am trying to call it in a textbox it gives me proper values but when the same is pulled into chart as an pick match expression then it gives me null values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is my expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Pick(Match(ValueList(vCashPlcmtLabel1,vCashPlcmntLabel2),'Current Year','Previous Year'),$(vAvgAUM(vFromDate,vToDate)),$(vAvgAUM(vPrevFromDate,vPrevToDate)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help as it is acting as a showstopper.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 08:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13424#M2201</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2018-05-10T08:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Parameterized variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13425#M2202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly how are you "calling" it from your textbox where it is working? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 08:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13425#M2202</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-05-10T08:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Parameterized variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13426#M2203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the textbox i call it with =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vAvgAUM(vFromDate,vToDate))&lt;/SPAN&gt; sign whereas in expression within pick() it is being called as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vAvgAUM(vFromDate,vToDate)).. May be '=' sign is creating a problem somewhere. I am not able to figure out.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 09:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13426#M2203</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2018-05-10T09:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Parameterized variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13427#M2204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to break it down and replace the two $-sign expansions with constants and see if it at least calculates to isolate the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Pick(Match(ValueList(vCashPlcmtLabel1,vCashPlcmntLabel2),'Current Year','Previous Year'),1,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 10:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13427#M2204</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-05-10T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Parameterized variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13428#M2205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the two variables vCashPlcmtLabel1 and vCashPlcmntLabel2 contain?&lt;/P&gt;&lt;P&gt;And the four variables &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vFromDate,vToDate,vPrevFromDate, vPrevToDate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are strings shouldn't the first part of the expression be like this instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Pick(Match(ValueList('$(vCashPlcmtLabel1)','$(vCashPlcmntLabel2)')........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A lot of problems stem from the fact that it is easy to forget to use aggregation functions. Henric Cronstöm is quite adamant about this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3779"&gt;Use Aggregation Functions!&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 10:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13428#M2205</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-05-10T10:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Parameterized variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13429#M2206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vCashPlcmtLabel1 and vCashPlcmntLabel2 are strings but they are working fine for rest of the expressions. This problem comes only with the parameterized variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vFromDate is date format which shows up correctly when displayed in textbox. No idea why there is a problem with pick match function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 11:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13429#M2206</guid>
      <dc:creator>saimahasan</dc:creator>
      <dc:date>2018-05-10T11:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Parameterized variable</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13430#M2207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess that &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BO_FUND_CLOSURE_DATE is a field right? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Then you should use an aggregation function as I pointed out earlier.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2018 15:41:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-Parameterized-variable/m-p/13430#M2207</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2018-05-10T15:41:59Z</dc:date>
    </item>
  </channel>
</rss>

