<?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: Summing specific numerical data in load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232973#M865664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #99cc00;"&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Check&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;dedicated&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Dedicated&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #99cc00;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Booking ID, Item Quantity, Resource&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 1, dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 2, Dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67890, 2, dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67890, 1, not dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55555, 1, dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2, not dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DesiredTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3366ff;"&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3366ff;"&gt;Where [Resource Count] &amp;gt; 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Booking ID],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff9900;"&gt;Sum(If(Exists(Check, Resource), [Item Quantity])) as [Resource Count]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Booking ID];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Portion is &lt;SPAN style="color: #99cc00;"&gt;green&lt;/SPAN&gt; is used for Exists function. This can be loaded from a qvd or Excel file. I just did it using Inline.&lt;/P&gt;&lt;P&gt;2) Portion in &lt;SPAN style="color: #ff9900;"&gt;orange&lt;/SPAN&gt; uses the Exists function as you wanted&lt;/P&gt;&lt;P&gt;3) Portion in &lt;SPAN style="color: #3366ff;"&gt;blue&lt;/SPAN&gt; is to get rid of rows with 0 count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146074_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2016 20:38:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-08T20:38:19Z</dc:date>
    <item>
      <title>Summing specific numerical data in load</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232968#M865659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to sum a set of numerical data, only when a certain condition exists. My source data has a number of personnel resources associated with a group of support types. I only want the sum of the number of resources assigned to a specific set of support types, and not others. For this example, I condensed all required support types to "dedicated" and all the rest to "not dedicated"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My source data may look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="174" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 292px; height: 166px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Booking ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Item Quantity&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Resource&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;dedicated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;dedicated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;67890&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;dedicated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;67890&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;not dedicated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;55555&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;dedicated&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;11111&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;not dedicated&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a new field called [Resource Count], which sums the [Item Quantity] for "Dedicated" resources. A table box of the desired&amp;nbsp; data would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 217px; height: 86px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Booking ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Resource Count&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;12345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;67890&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;55555&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I want to create a chart showing how many Booking IDs have each Resource Count. ie- how many bookings had 2 resources, and how many had 3. The chart would have a dimension of [Resource Count] and an expression of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct([Booking ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me how I could sum only the [Item Quantity] data associated with the 'dedicated' resource of each booking, in order to create this chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried a preceding load:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;if(exists([&lt;EM style="color: #ff0000;"&gt;field on separately loaded table listing the 5 possible 'dedicated' options&lt;/EM&gt;],[Resource]),sum([Item Quantity])) as [Resource Count]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this produced errors. I also ran a pivot table on the source Excel document which generated a list of Booking IDs and the summed Resource count I want, but when I loaded that along side of the rest of my Qlikview data, it delivered a number of nil results where there should have been a number. I also tried using left, right, inner and outer joins with this data to see if it helped (it didn't). Not to mention, I would like to avoid having to do a manual function on the source data before importing.&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/Summing-specific-numerical-data-in-load/m-p/1232968#M865659</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Summing specific numerical data in load</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232969#M865660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DesiredTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Booking ID],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(If(Lower(Resource) = 'dedicated', [Item Quantity])) as [Resource Count]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Booking ID];&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:01:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232969#M865660</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-08T20:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Summing specific numerical data in load</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232970#M865661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sample attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146073_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232970#M865661</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-08T20:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Summing specific numerical data in load</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232971#M865662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! It looks like the Resident load is the missing key. I have to do a little follow-up research to make sure I understand Resident loads- but I can handle that and don't need to hash that out on this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A couple of questions:&lt;/P&gt;&lt;P&gt;What is the purpose of "Lower" here? Is it just because I mixed lower/upper case in my description? (an accident, and not part of the data) Or does it perform some further function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see any issues replacing { If(Lower(Resource)='dedicated',&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;with my{ If(Exists......&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; statement above? The actual data which "dedicated" is substituting for is a series of rather lengthy statements, and the possible Resources to be included are likely to be updated on occasion. Rather than individually listing each choice within the LOAD statement and managing it there, I would prefer to manage it on my source list, which is already serving that purpose for other functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, is there a way to eliminate the 0 result in the [Resource Count] field? I could just pull up a table for that field and select all non-0 options, or create a button, or otherwise take care of it post-LOAD, but if there is a clean way to do it right off the bat, it would be preferable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232971#M865662</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2016-12-08T20:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Summing specific numerical data in load</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232972#M865663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;What is the purpose of "Lower" here? Is it just because I mixed lower/upper case in my description? (an accident, and not part of the data) Or does it perform some further function?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes the sole purpose of lower was to make sure that if there is a casing difference in the actual data, the if statement doesn't fall through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Do you see any issues replacing { If(Lower(Resource)='dedicated',&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;with my{ If(Exists......&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp; statement above? The actual data which "dedicated" is substituting for is a series of rather lengthy statements, and the possible Resources to be included are likely to be updated on occasion. Rather than individually listing each choice within the LOAD statement and managing it there, I would prefer to manage it on my source list, which is already serving that purpose for other functions.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can use exists, but will have to be little careful. I will share another example with exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Lastly, is there a way to eliminate the 0 result in the [Resource Count] field? I could just pull up a table for that field and select all non-0 options, or create a button, or otherwise take care of it post-LOAD, but if there is a clean way to do it right off the bat, it would be preferable.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Will propose a solution for this in the following updated sample&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232972#M865663</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-08T20:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Summing specific numerical data in load</title>
      <link>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232973#M865664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #99cc00;"&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Check&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;dedicated&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;&lt;STRONG&gt;Dedicated&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #99cc00;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Booking ID, Item Quantity, Resource&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 1, dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12345, 2, Dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67890, 2, dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 67890, 1, not dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55555, 1, dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11111, 2, not dedicated&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DesiredTable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3366ff;"&gt;LOAD *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3366ff;"&gt;Where [Resource Count] &amp;gt; 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Booking ID],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff9900;"&gt;Sum(If(Exists(Check, Resource), [Item Quantity])) as [Resource Count]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Group By [Booking ID];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Portion is &lt;SPAN style="color: #99cc00;"&gt;green&lt;/SPAN&gt; is used for Exists function. This can be loaded from a qvd or Excel file. I just did it using Inline.&lt;/P&gt;&lt;P&gt;2) Portion in &lt;SPAN style="color: #ff9900;"&gt;orange&lt;/SPAN&gt; uses the Exists function as you wanted&lt;/P&gt;&lt;P&gt;3) Portion in &lt;SPAN style="color: #3366ff;"&gt;blue&lt;/SPAN&gt; is to get rid of rows with 0 count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/146074_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2016 20:38:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summing-specific-numerical-data-in-load/m-p/1232973#M865664</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-08T20:38:19Z</dc:date>
    </item>
  </channel>
</rss>

