<?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 Sum only containing defined units in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-only-containing-defined-units/m-p/1537681#M457220</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am working on a Pivot Table that contains production output for several working places. Some working places are reporting different quantity units (for example pieces as well as kg). For that reason I have a source that links a working place with its desired unit.&lt;/P&gt;&lt;P&gt;Unfortunately I am not able to&amp;nbsp;formulate a sum that only adds&amp;nbsp;output entrys if their quantity&amp;nbsp;unit matches the defined one.&lt;/P&gt;&lt;PRE&gt;=Sum({$&amp;lt;PROD.PMEIN = {$(PM2_0.VME)},PROD.PRODDAT2 = {"&amp;lt;=$(=num(Stichtag))"}&amp;gt;} PROD.GMNG_PRDME)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PM2_0.VME --&amp;gt; desired quantity unit (VME Soll)&lt;/P&gt;&lt;P&gt;PROD.PMEIN --&amp;gt; quantity unit in output entry (VME, concat seperated by '|' if more than one)&lt;/P&gt;&lt;P&gt;PROD.GMNG_PRODME --&amp;gt; output quantity (Output Ist should not be 0)&lt;/P&gt;&lt;P&gt;The tables PROD and PM2_0 are linked with a key. Second condition is working perfectly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikView_example.png" style="width: 779px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4915i65AC7E0E12176BE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="QlikView_example.png" alt="QlikView_example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone recognize my mistake? Please help!!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2019 09:57:57 GMT</pubDate>
    <dc:creator>JonasM95</dc:creator>
    <dc:date>2019-01-31T09:57:57Z</dc:date>
    <item>
      <title>Sum only containing defined units</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-only-containing-defined-units/m-p/1537681#M457220</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am working on a Pivot Table that contains production output for several working places. Some working places are reporting different quantity units (for example pieces as well as kg). For that reason I have a source that links a working place with its desired unit.&lt;/P&gt;&lt;P&gt;Unfortunately I am not able to&amp;nbsp;formulate a sum that only adds&amp;nbsp;output entrys if their quantity&amp;nbsp;unit matches the defined one.&lt;/P&gt;&lt;PRE&gt;=Sum({$&amp;lt;PROD.PMEIN = {$(PM2_0.VME)},PROD.PRODDAT2 = {"&amp;lt;=$(=num(Stichtag))"}&amp;gt;} PROD.GMNG_PRDME)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PM2_0.VME --&amp;gt; desired quantity unit (VME Soll)&lt;/P&gt;&lt;P&gt;PROD.PMEIN --&amp;gt; quantity unit in output entry (VME, concat seperated by '|' if more than one)&lt;/P&gt;&lt;P&gt;PROD.GMNG_PRODME --&amp;gt; output quantity (Output Ist should not be 0)&lt;/P&gt;&lt;P&gt;The tables PROD and PM2_0 are linked with a key. Second condition is working perfectly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikView_example.png" style="width: 779px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/4915i65AC7E0E12176BE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="QlikView_example.png" alt="QlikView_example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can anyone recognize my mistake? Please help!!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 09:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-only-containing-defined-units/m-p/1537681#M457220</guid>
      <dc:creator>JonasM95</dc:creator>
      <dc:date>2019-01-31T09:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sum only containing defined units</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-only-containing-defined-units/m-p/1537699#M457221</link>
      <description>try this:&lt;BR /&gt;=Sum( {&amp;lt; PROD.PRODDAT2 = {"&amp;lt;=$(=num(Stichtag))"} &amp;gt;}&lt;BR /&gt;if( PROD.PMEIN = PM2_0.VME, PROD.GMNG_PRDME ) )</description>
      <pubDate>Thu, 31 Jan 2019 10:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-only-containing-defined-units/m-p/1537699#M457221</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2019-01-31T10:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum only containing defined units</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-only-containing-defined-units/m-p/1537708#M457222</link>
      <description>&lt;P&gt;Thanks a lot for your quick reply, I have just tested and it seems to work.&lt;/P&gt;&lt;P&gt;Never thought that the solution would be so easy. &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.qlik.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 10:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-only-containing-defined-units/m-p/1537708#M457222</guid>
      <dc:creator>JonasM95</dc:creator>
      <dc:date>2019-01-31T10:21:07Z</dc:date>
    </item>
  </channel>
</rss>

