<?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: how do i put this needed result in a textbox value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285399#M106118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I understood you right (I'm assuming the labels are respective to the Max() and Sum() function), but if that returns more than one line, use better a straight table without dimensions with something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Count({&amp;lt; ID = {"=Max(quantity)", "=Sum(quality - safetystock) &amp;lt; 0"} &amp;gt;} ID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Jul 2011 22:18:57 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2011-07-16T22:18:57Z</dc:date>
    <item>
      <title>how do i put this needed result in a textbox value</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285398#M106117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have this pivot;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension: material&lt;/P&gt;&lt;P&gt;expression : MAX(quantity),SUM(safetystock),[quality]-[safetystock]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to put the count on the results where quality-safetystock &amp;lt; 0 into a textbox.&lt;/P&gt;&lt;P&gt;So i want in a textbox how many materials are below safetystock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how does this expression look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 21:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285398#M106117</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-07-16T21:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: how do i put this needed result in a textbox value</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285399#M106118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I understood you right (I'm assuming the labels are respective to the Max() and Sum() function), but if that returns more than one line, use better a straight table without dimensions with something like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Count({&amp;lt; ID = {"=Max(quantity)", "=Sum(quality - safetystock) &amp;lt; 0"} &amp;gt;} ID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 22:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285399#M106118</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-16T22:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: how do i put this needed result in a textbox value</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285400#M106119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes those are the labels of max() and sum()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only your formula doesn't give me the end result that i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i have this in an expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(MAX(Quantity) - SUM(SafetyStock) &amp;lt; 0,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the sum of that (all the '1') into a single textbox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 22:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285400#M106119</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-07-16T22:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: how do i put this needed result in a textbox value</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285401#M106120</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;Then try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Count({&amp;lt; ID = {"=Max(Quantity) - Sum(SafetyStock) &amp;gt; 0"} &amp;gt;} ID)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the "ID" as the field that identifies those Quantity and SafetyStock (Items maybe)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 22:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285401#M106120</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-07-16T22:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: how do i put this needed result in a textbox value</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285402#M106121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw .. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not items, but plants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;each plant has different quantities on each material (max)&lt;/P&gt;&lt;P&gt;i dont really need to see the plant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and each material has a needed safety stock which is only one per material (sum)&lt;/P&gt;&lt;P&gt;so the sum is not really needed cause all materials only have one safety stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 22:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285402#M106121</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-07-16T22:52:46Z</dc:date>
    </item>
    <item>
      <title>how do i put this needed result in a textbox value</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285403#M106122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Miguel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have added an example .. in my textbox/button .. i need the value '2'&amp;nbsp; .. because 2 materials are below safetystock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jul 2011 15:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285403#M106122</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-07-17T15:26:33Z</dc:date>
    </item>
    <item>
      <title>how do i put this needed result in a textbox value</title>
      <link>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285404#M106123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SUM(IF(AGGR((MAX([Quantity]) - SUM([SafetyStock])),[MaterialID]) &amp;lt; 0,1))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 09:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-do-i-put-this-needed-result-in-a-textbox-value/m-p/285404#M106123</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2011-07-18T09:25:28Z</dc:date>
    </item>
  </channel>
</rss>

