<?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: Use Variable in Inline Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077616#M922458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason why it's not working is that you have a $-sign expansion within your first expression and they will be evaluated during the load and it results in NULL for it - if you have a look within the tableviewer on this table in preview and looked on the result from this field you will see that the expression is umcomplete and therefore couldn't be work within the gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One commonly used workaround for these topic is to use another char for it and replace it later, like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target:&lt;/P&gt;&lt;P&gt;Load %Target, TargetOrder, &lt;STRONG&gt;replace(TDAchieved, '###', '$') as TDAchieved&lt;/STRONG&gt; ,TDTarget Inline [&lt;/P&gt;&lt;P&gt;%Target, TargetOrder, TDAchieved ,TDTarget&lt;/P&gt;&lt;P&gt;Session,1,'sum({&amp;lt;MonthID={&lt;STRONG&gt;###&lt;/STRONG&gt;(=max(MonthID))}&amp;gt;}SpValueDaily)','sum({&amp;lt;IsCurrentMonth={1}&amp;gt;}SpValueDaily)'&lt;/P&gt;&lt;P&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, 21 Apr 2016 12:52:36 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-04-21T12:52:36Z</dc:date>
    <item>
      <title>Use Variable in Inline Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077612#M922454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have Inline Table&amp;nbsp; As:&lt;/P&gt;&lt;P&gt;Target:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;%Target, TargetOrder, TDAchieved ,TDTarget&lt;/P&gt;&lt;P&gt;Session,1,'sum({&amp;lt;MonthID={$(=max(MonthID))}&amp;gt;}SpValueDaily)','sum({&amp;lt;IsCurrentMonth={1}&amp;gt;}SpValueDaily)'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in text .. I have a Expression &lt;/P&gt;&lt;P&gt;1: $(=Maxstring(TDAchieved))&lt;/P&gt;&lt;P&gt;2: $(=Maxstring(TDTarget))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my first Expression is not giving a Value .. Where i am calculating value for max month based on user selection.&lt;/P&gt;&lt;P&gt;if i am Writing my expression Directly&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;MonthID={$(=max(MonthID))}&amp;gt;}SpValueDaily)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;in Text its gives me a Output.. I need how to write same thing in inline table and use as Variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly check and help me on this. i as Well Attaching sample data and qvw for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Either how can i write set analysis on script in inline table to get max month on customer selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077612#M922454</guid>
      <dc:creator>brijeshvma</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Use Variable in Inline Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077613#M922455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/" title="http://www.qlikfix.com/2011/09/21/storing-variables-outside-of-qlikview/"&gt;Storing variables outside of QlikView - The Qlik Fix! The Qlik Fix!&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 12:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077613#M922455</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-04-21T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use Variable in Inline Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077614#M922456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any other solution to achieve this .. Apart from this one ..Kindly help me on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 12:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077614#M922456</guid>
      <dc:creator>brijeshvma</dc:creator>
      <dc:date>2016-04-21T12:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use Variable in Inline Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077615#M922457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any Response on this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 12:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077615#M922457</guid>
      <dc:creator>brijeshvma</dc:creator>
      <dc:date>2016-04-21T12:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use Variable in Inline Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077616#M922458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason why it's not working is that you have a $-sign expansion within your first expression and they will be evaluated during the load and it results in NULL for it - if you have a look within the tableviewer on this table in preview and looked on the result from this field you will see that the expression is umcomplete and therefore couldn't be work within the gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One commonly used workaround for these topic is to use another char for it and replace it later, like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target:&lt;/P&gt;&lt;P&gt;Load %Target, TargetOrder, &lt;STRONG&gt;replace(TDAchieved, '###', '$') as TDAchieved&lt;/STRONG&gt; ,TDTarget Inline [&lt;/P&gt;&lt;P&gt;%Target, TargetOrder, TDAchieved ,TDTarget&lt;/P&gt;&lt;P&gt;Session,1,'sum({&amp;lt;MonthID={&lt;STRONG&gt;###&lt;/STRONG&gt;(=max(MonthID))}&amp;gt;}SpValueDaily)','sum({&amp;lt;IsCurrentMonth={1}&amp;gt;}SpValueDaily)'&lt;/P&gt;&lt;P&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, 21 Apr 2016 12:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077616#M922458</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-21T12:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use Variable in Inline Table</title>
      <link>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077617#M922459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much for your reply and explanation.. its working now .....:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 13:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-Variable-in-Inline-Table/m-p/1077617#M922459</guid>
      <dc:creator>brijeshvma</dc:creator>
      <dc:date>2016-04-21T13:23:56Z</dc:date>
    </item>
  </channel>
</rss>

