<?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: Override list box choice for an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761274#M1029253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the expression from another one using a different source field so it works ok. I don't want to create the variable, because it would mean a ton of changes to my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to bring the right set of data through with &lt;STRONG&gt;sum({&amp;lt;YYYYMM={"&amp;gt;$(=Date(AddMonths(Today(),0),'YYYYMM'))"},Plant={2000}&amp;gt;}Purchase_order_qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to remove the &lt;STRONG&gt;Total &amp;lt;Plant&amp;gt;&lt;/STRONG&gt; because it was summing the data for each row. It was something that I had needed for another expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Teemu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2015 10:50:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-25T10:50:30Z</dc:date>
    <item>
      <title>Override list box choice for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761271#M1029250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression where I'm summing data from 3 different fields. Two of them correspond to a list box selection for the plant code and one should return values from another plant number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the field "Purchase_order_qty" to return values for plant 2000 only regardless of which plant is chosen in the list box. In other words I want to input "Plant=2000" into the formula below, but keep failing to get it right. I have verified that the data exists and comes through to a check-up straight table I created. The bolded underlined part is the way I tried it. No error, but no success either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YYYYMM={"&amp;gt;$(=Date(AddMonths(Today(),0),'YYYYMM',&lt;STRONG style="text-decoration: underline;"&gt;Plant={2000}&amp;gt;Total &amp;lt;Plant&amp;gt;&lt;/STRONG&gt;))"}&amp;gt;}Purchase_order_qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Teemu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 13:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761271#M1029250</guid>
      <dc:creator />
      <dc:date>2015-02-20T13:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Override list box choice for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761272#M1029251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;YYYYMM={"&amp;gt;$(=Date(AddMonths(Today(),0),'YYYYMM'))"},Plant={2000}&amp;gt;} Total &amp;lt;Plant&amp;gt; Purchase_order_qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on what you need to achieve I don't know if the "Total &amp;lt;Plant&amp;gt;" bit is relevant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Nuno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 16:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761272#M1029251</guid>
      <dc:creator />
      <dc:date>2015-02-22T16:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Override list box choice for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761273#M1029252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your expression without the Plant portion working for you? Meaning is it giving you any output? The reason I asked this because, when I usually use single quotes between the set modifier, it give me an error.&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;&lt;STRONG&gt;sum({&amp;lt;YYYYMM={"&amp;gt;$(=Date(AddMonths(Today(),0),'YYYYMM'))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;"}&amp;gt;}Purchase_order_qty)??&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I would do. Create a variable &lt;STRONG&gt;vYearMonth = Date(Today(), 'YYYYMM')&lt;/STRONG&gt; and then use this variable in my expression like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;YYYYMM = {'&amp;gt;=$(vYearDate)'}&amp;gt;} Purchase_order_qty&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To come to selecting data for only Plant 2000, you can further expand your expression, this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;Sum({&amp;lt;YYYYMM = {'&amp;gt;=$(vYearDate)'}, Plant = {2000}&amp;gt;} Purchase_order_qty&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Try and see if the above expression gives you any result or not? (Still not sure why you have Total &amp;lt;Plant&amp;gt; in there, but we can figure that out if we can get some result from the above expression.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 20:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761273#M1029252</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-22T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Override list box choice for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761274#M1029253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied the expression from another one using a different source field so it works ok. I don't want to create the variable, because it would mean a ton of changes to my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to bring the right set of data through with &lt;STRONG&gt;sum({&amp;lt;YYYYMM={"&amp;gt;$(=Date(AddMonths(Today(),0),'YYYYMM'))"},Plant={2000}&amp;gt;}Purchase_order_qty)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had to remove the &lt;STRONG&gt;Total &amp;lt;Plant&amp;gt;&lt;/STRONG&gt; because it was summing the data for each row. It was something that I had needed for another expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Teemu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 10:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761274#M1029253</guid>
      <dc:creator />
      <dc:date>2015-02-25T10:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Override list box choice for an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761275#M1029254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you got what you wanted, I would suggest closing this thread by marking your answer correct so that it can be helpful for someone in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 11:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Override-list-box-choice-for-an-expression/m-p/761275#M1029254</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-02-25T11:11:57Z</dc:date>
    </item>
  </channel>
</rss>

