<?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 Resolving a Paramter befor Variable expansion in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Resolving-a-Paramter-befor-Variable-expansion/m-p/129411#M19531</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;/P&gt;&lt;P&gt;The given example is a simplified version of the problem. I dont need a solution for the actual task - so please no workaround answeres - Just is this possible, and why not?&lt;/P&gt;&lt;P&gt;I have a Pivot Table with Months as its Columns(numeric).&lt;/P&gt;&lt;P&gt;i've set a variable in the Document Options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={$1}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;The Variable is called inside the Chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vShowParam(Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, it seems like the variable will always be expanded/evaluated outside the context of my chart.&lt;/P&gt;&lt;P&gt;Meaning Month is independent of the char Column 'Month' at the time of evaluation. So Month is always 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following:&lt;/P&gt;&lt;P&gt;=$(vShowParam($(=num(Month))))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Results to: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={-}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=$(vShowParam($(=num(max(Month)))))&lt;/P&gt;&lt;P&gt;Results to: &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={12}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=$(vShowParam(num(max(Month))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Results to: &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={&lt;SPAN style="font-size: 13.3333px;"&gt;num(max(Month))&lt;/SPAN&gt;}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have a Parameter resolve inside the Context of the Chart before evaluating the Variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current solution is (works, but there must me a clearer Solution!):&lt;/P&gt;&lt;P&gt;if(Month = 1, &lt;SPAN style="font-size: 13.3333px;"&gt;$(vShowParam(1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;if(Month = 2, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(vShowParam(2))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jul 2018 12:59:20 GMT</pubDate>
    <dc:creator>daniel_werndl</dc:creator>
    <dc:date>2018-07-26T12:59:20Z</dc:date>
    <item>
      <title>Resolving a Paramter befor Variable expansion</title>
      <link>https://community.qlik.com/t5/QlikView/Resolving-a-Paramter-befor-Variable-expansion/m-p/129411#M19531</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;/P&gt;&lt;P&gt;The given example is a simplified version of the problem. I dont need a solution for the actual task - so please no workaround answeres - Just is this possible, and why not?&lt;/P&gt;&lt;P&gt;I have a Pivot Table with Months as its Columns(numeric).&lt;/P&gt;&lt;P&gt;i've set a variable in the Document Options:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={$1}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;The Variable is called inside the Chart:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vShowParam(Month))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, it seems like the variable will always be expanded/evaluated outside the context of my chart.&lt;/P&gt;&lt;P&gt;Meaning Month is independent of the char Column 'Month' at the time of evaluation. So Month is always 12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following:&lt;/P&gt;&lt;P&gt;=$(vShowParam($(=num(Month))))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Results to: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={-}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=$(vShowParam($(=num(max(Month)))))&lt;/P&gt;&lt;P&gt;Results to: &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={12}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=$(vShowParam(num(max(Month))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Results to: &lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vShowParam: sum({&amp;lt;Month={&lt;SPAN style="font-size: 13.3333px;"&gt;num(max(Month))&lt;/SPAN&gt;}&amp;gt;}Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have a Parameter resolve inside the Context of the Chart before evaluating the Variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current solution is (works, but there must me a clearer Solution!):&lt;/P&gt;&lt;P&gt;if(Month = 1, &lt;SPAN style="font-size: 13.3333px;"&gt;$(vShowParam(1))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,&lt;SPAN style="font-size: 13.3333px;"&gt;if(Month = 2, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;$(vShowParam(2))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Resolving-a-Paramter-befor-Variable-expansion/m-p/129411#M19531</guid>
      <dc:creator>daniel_werndl</dc:creator>
      <dc:date>2018-07-26T12:59:20Z</dc:date>
    </item>
  </channel>
</rss>

