<?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 in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-in-Set-Analysis/m-p/102538#M16291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want to say that's not possible to get such a construct to work but I think that your nesting of variables which also contain nested variables is an overuse of variables respectively the idea behind them - which is mainly to simplify things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion are the efforts to develop and maintain here a stable solution much higher as the benefit (and there is always a risk that you couldn't include all needed functionalities or parameters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I suggest to rethink your whole approach. Nevertheless if you want to continue with your approach you will find here multiple postings to this topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="/t5/forums/searchpage/tab/message?q=variable parameter comma marcus"&gt;https://community.qlik.com/search.jspa?q=variable+parameter&lt;STRONG&gt;+comma+&lt;/STRONG&gt;marcus&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2018 11:39:05 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-07-19T11:39:05Z</dc:date>
    <item>
      <title>Variable with parameter in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-in-Set-Analysis/m-p/102537#M16290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am now writing a variable as the expression for the dashborard that containg parameter as the set analysis modifier.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;CalendarDate={"&amp;gt;=$(vCurrentMinDate) &amp;lt;=$(vCurrentMaxDate)"},CalendarWeekDay={Fri},$1&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;while the $1 is another variable "vFirstPeriod" equal to this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=if(vType=2,&lt;/P&gt;&lt;P&gt;'MonthYear={"$(=$(vCurrentFirstMonth))"}'&lt;/P&gt;&lt;P&gt;,'CalendarWeek={"$(=$(vPeriodWeek($(vCurrentMinDate), $(vCurrentMinDateFirstWeekEnd))))"}'&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So the final expression appears in the table is like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=$(vtest1($(vFirstPeriod)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The result is that the expression can be evaluated but coming with a wrong result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The reason is the first parameter cannot be evaluated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Would anyone suggest the correct syntax for that?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:04:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-parameter-in-Set-Analysis/m-p/102537#M16290</guid>
      <dc:creator>mavericklee</dc:creator>
      <dc:date>2018-07-18T17:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with parameter in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-parameter-in-Set-Analysis/m-p/102538#M16291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want to say that's not possible to get such a construct to work but I think that your nesting of variables which also contain nested variables is an overuse of variables respectively the idea behind them - which is mainly to simplify things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion are the efforts to develop and maintain here a stable solution much higher as the benefit (and there is always a risk that you couldn't include all needed functionalities or parameters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore I suggest to rethink your whole approach. Nevertheless if you want to continue with your approach you will find here multiple postings to this topic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="/t5/forums/searchpage/tab/message?q=variable parameter comma marcus"&gt;https://community.qlik.com/search.jspa?q=variable+parameter&lt;STRONG&gt;+comma+&lt;/STRONG&gt;marcus&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 11:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-parameter-in-Set-Analysis/m-p/102538#M16291</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-07-19T11:39:05Z</dc:date>
    </item>
  </channel>
</rss>

