<?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 How to get individual sum value for range based on SID . in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-individual-sum-value-for-range-based-on-SID/m-p/2028525#M1222282</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Hi All,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I am having data based on location IDs .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I have multiple location ids and there are two location ids having same poldimid with different values.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I need to show data based on Range selection like bucket&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=&amp;lt;5m&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;5M to &amp;lt;=10M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;10M to &amp;lt;=15 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Location id123&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value 1:&amp;nbsp; 5000000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value 2 :12 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Location id 123 is having data for =&amp;lt;5 M count is 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Then &amp;gt;10 M Count is 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The other location ID 456 :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;value 1:2M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value 2 : 6 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Location id 456. Will come in &amp;lt;=5 M range and count is 1&lt;/P&gt;
&lt;P&gt;Second value should come in &amp;gt;5 M range&lt;/P&gt;
&lt;P&gt;I am showing data in table for all location ids by default.&lt;/P&gt;
&lt;P&gt;The count is coming and total sum values are coming and range also displaying correct.&lt;/P&gt;
&lt;P&gt;When i select individual location ids data is coming in one range is correct and other one is dispalying same range or different range based on total value&lt;/P&gt;
&lt;P&gt;For particual this scenario its coming same range but total value is wrong.its showing two different location sids sum in range .it snot showing individual sum&lt;/P&gt;
&lt;P&gt;If we select these location ids once at a tine&amp;nbsp; in filter data is displaying correct.&lt;/P&gt;
&lt;P&gt;The poldim id available in these two locations and i am doing group by sic and poldimid&lt;/P&gt;
&lt;P&gt;Values are differ for individaul location ids based in subject id which is unique in table.&lt;/P&gt;
&lt;P&gt;When we select individual location ids the total is calculating over all sum for based on poldimid&lt;/P&gt;
&lt;P&gt;In both selections its showing total sum for that poldim id range&lt;/P&gt;
&lt;P&gt;But i should get individual sum&lt;/P&gt;
&lt;P&gt;Main table:&lt;/P&gt;
&lt;P&gt;Sic&amp;amp;poldimid as Key,&lt;/P&gt;
&lt;P&gt;Pln no,&lt;/P&gt;
&lt;P&gt;LicNo,&lt;/P&gt;
&lt;P&gt;Poldimid,&lt;/P&gt;
&lt;P&gt;Locationid,&lt;/P&gt;
&lt;P&gt;Subjdid,&lt;/P&gt;
&lt;P&gt;Sic,&lt;/P&gt;
&lt;P&gt;Values,&lt;/P&gt;
&lt;P&gt;Dept;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resident:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Sic&amp;amp;poldimid as Key,&lt;/P&gt;
&lt;P&gt;Rowno() as Countofpols,&lt;/P&gt;
&lt;P&gt;Sum(values) total&lt;/P&gt;
&lt;P&gt;Resident t1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Group by&lt;/P&gt;
&lt;P&gt;Sic,poodimid;&lt;/P&gt;
&lt;P&gt;I must do group by onlh Soc and poldimid&lt;/P&gt;
&lt;P&gt;Resulsts:&lt;/P&gt;
&lt;P&gt;All locationids values apperaing correct in range&lt;/P&gt;
&lt;P&gt;For individual for locationid 123&lt;/P&gt;
&lt;P&gt;&amp;lt;=5M.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5000000&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;5M to &amp;lt;=10M.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;10M to &amp;lt;=15 M.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;but actual values is 12 M AND 2M Is from location 456 value since it has same poldim id&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;It is showing total sum value based on poldimid&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But i need to get only 12 M value in thta range&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If we select 456 location its showing 14 M value for&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But actual value should dispay 2 M under &amp;lt;=5 M range&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jan 2023 18:27:55 GMT</pubDate>
    <dc:creator>MEDHA07</dc:creator>
    <dc:date>2023-01-21T18:27:55Z</dc:date>
    <item>
      <title>How to get individual sum value for range based on SID .</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-individual-sum-value-for-range-based-on-SID/m-p/2028525#M1222282</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Hi All,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I am having data based on location IDs .&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I have multiple location ids and there are two location ids having same poldimid with different values.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;I need to show data based on Range selection like bucket&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=&amp;lt;5m&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;5M to &amp;lt;=10M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;10M to &amp;lt;=15 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Location id123&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value 1:&amp;nbsp; 5000000&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value 2 :12 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Location id 123 is having data for =&amp;lt;5 M count is 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Then &amp;gt;10 M Count is 1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The other location ID 456 :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;value 1:2M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Value 2 : 6 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Location id 456. Will come in &amp;lt;=5 M range and count is 1&lt;/P&gt;
&lt;P&gt;Second value should come in &amp;gt;5 M range&lt;/P&gt;
&lt;P&gt;I am showing data in table for all location ids by default.&lt;/P&gt;
&lt;P&gt;The count is coming and total sum values are coming and range also displaying correct.&lt;/P&gt;
&lt;P&gt;When i select individual location ids data is coming in one range is correct and other one is dispalying same range or different range based on total value&lt;/P&gt;
&lt;P&gt;For particual this scenario its coming same range but total value is wrong.its showing two different location sids sum in range .it snot showing individual sum&lt;/P&gt;
&lt;P&gt;If we select these location ids once at a tine&amp;nbsp; in filter data is displaying correct.&lt;/P&gt;
&lt;P&gt;The poldim id available in these two locations and i am doing group by sic and poldimid&lt;/P&gt;
&lt;P&gt;Values are differ for individaul location ids based in subject id which is unique in table.&lt;/P&gt;
&lt;P&gt;When we select individual location ids the total is calculating over all sum for based on poldimid&lt;/P&gt;
&lt;P&gt;In both selections its showing total sum for that poldim id range&lt;/P&gt;
&lt;P&gt;But i should get individual sum&lt;/P&gt;
&lt;P&gt;Main table:&lt;/P&gt;
&lt;P&gt;Sic&amp;amp;poldimid as Key,&lt;/P&gt;
&lt;P&gt;Pln no,&lt;/P&gt;
&lt;P&gt;LicNo,&lt;/P&gt;
&lt;P&gt;Poldimid,&lt;/P&gt;
&lt;P&gt;Locationid,&lt;/P&gt;
&lt;P&gt;Subjdid,&lt;/P&gt;
&lt;P&gt;Sic,&lt;/P&gt;
&lt;P&gt;Values,&lt;/P&gt;
&lt;P&gt;Dept;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Resident:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;Sic&amp;amp;poldimid as Key,&lt;/P&gt;
&lt;P&gt;Rowno() as Countofpols,&lt;/P&gt;
&lt;P&gt;Sum(values) total&lt;/P&gt;
&lt;P&gt;Resident t1&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Group by&lt;/P&gt;
&lt;P&gt;Sic,poodimid;&lt;/P&gt;
&lt;P&gt;I must do group by onlh Soc and poldimid&lt;/P&gt;
&lt;P&gt;Resulsts:&lt;/P&gt;
&lt;P&gt;All locationids values apperaing correct in range&lt;/P&gt;
&lt;P&gt;For individual for locationid 123&lt;/P&gt;
&lt;P&gt;&amp;lt;=5M.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5000000&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;5M to &amp;lt;=10M.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;gt;10M to &amp;lt;=15 M.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14 M&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;but actual values is 12 M AND 2M Is from location 456 value since it has same poldim id&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;It is showing total sum value based on poldimid&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But i need to get only 12 M value in thta range&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;If we select 456 location its showing 14 M value for&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;But actual value should dispay 2 M under &amp;lt;=5 M range&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 18:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-individual-sum-value-for-range-based-on-SID/m-p/2028525#M1222282</guid>
      <dc:creator>MEDHA07</dc:creator>
      <dc:date>2023-01-21T18:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get individual sum value for range based on SID .</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-individual-sum-value-for-range-based-on-SID/m-p/2030103#M1222361</link>
      <description>&lt;P&gt;It sounds like you are having an issue with the group by statement in your Resident table.&lt;/P&gt;
&lt;P&gt;It appears that the group by statement is only grouping by Sic and Poldimid, which is causing the values from different location ids with the same Poldimid to be combined in the same range.&lt;/P&gt;
&lt;P&gt;To fix this, you can add the Locationid field to the group by statement in your Resident table. This will ensure that the values for each Locationid are grouped separately, and the ranges will be calculated correctly for each individual Locationid.&lt;/P&gt;
&lt;P&gt;Here's an example of how you can modify the Resident table:&lt;/P&gt;
&lt;P&gt;Resident: Load Sic&amp;amp;poldimid as Key, Rowno() as Countofpols, Sum(values) total Resident t1 Group by Sic,poodimid, Locationid;&lt;/P&gt;
&lt;P&gt;With this modification, the Resident table will group the data by Sic, Poldimid, and Locationid, which will ensure that the values for each Locationid are calculated separately, and the ranges will be correct for each individual Locationid.&lt;/P&gt;
&lt;P&gt;It could be that you need to do a join on the table with your main table to get the correct values, or maybe you need to do a sub-set of the data, that you want to see in the table.&lt;/P&gt;
&lt;P&gt;Please note that this is just an example, you might want to adjust the formula according to your data and needs.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 21:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-individual-sum-value-for-range-based-on-SID/m-p/2030103#M1222361</guid>
      <dc:creator>jcmachado</dc:creator>
      <dc:date>2023-01-25T21:12:37Z</dc:date>
    </item>
  </channel>
</rss>

