<?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 Summarize fieldvalues in Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153267#M502175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created two Inputfields, inpBanking and inpStudy. I think you need one for every variable you want to use. The values are simple comma separated lists. Then for the variable vBanking you would use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt;Accountnr = {$(=Only(inpBanking))}&amp;gt;} [Totaldeb])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;If you want the variable value to be the same regardless of dimension and selection, use: &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({1&amp;lt;Accountnr = {$(=Only(inpBanking))}&amp;gt;} TOTAL [Totaldeb])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The principal would be the same for the other variables. I've attached a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 14:52:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-21T14:52:56Z</dc:date>
    <item>
      <title>Summarize fieldvalues in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153264#M502172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Although it looks actually quite simple to me, I can't solve it.&lt;/P&gt;&lt;P&gt;Table example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="129"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="font-weight: bold"&gt;Accountnr&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="font-weight: bold"&gt;Totaldeb&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;6454&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;87452&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;5&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;5145&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;6&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;12458&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;10&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;8514&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;18&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;67158&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;20&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;2917&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;21&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;7534&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;101&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;12208&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD valign="bottom" width="75"&gt;&lt;P style="text-align: right"&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD valign="bottom" width="55"&gt;&lt;P style="text-align: right"&gt;48554&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Actually there are approx. 1000 accountnrs.&lt;/P&gt;&lt;P&gt;What I would like to achieve is to summarize certain values into a variable, for example:&lt;BR /&gt;&lt;EM&gt;The sum of Totaldeb for accountnr 1,5,6 and 20 should become variable varBanking.&lt;BR /&gt; The sum of Totaldeb for accountnr 3,21 and 101 should become variable varStudy.&lt;BR /&gt;&lt;/EM&gt; Probably with a maximum number of 20 accounts per variable.&lt;/P&gt;&lt;P&gt;QV Users should have the ability to change the range of accountnrs, through a (Comma seperated?) QV Inputfield (/variable)&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Accountnr, Totaldeb&lt;BR /&gt; 1, 6454&lt;BR /&gt; 3, 87452&lt;BR /&gt; 5, 5145&lt;BR /&gt; 6, 12458&lt;BR /&gt; 10, 8514&lt;BR /&gt; 18, 67158&lt;BR /&gt; 20, 2917&lt;BR /&gt; 21, 7534&lt;BR /&gt; 101, 12208&lt;BR /&gt; 200, 48554&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153264#M502172</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2010-10-21T14:13:58Z</dc:date>
    </item>
    <item>
      <title>Summarize fieldvalues in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153265#M502173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best option is to work with a flag.&lt;/P&gt;&lt;P&gt;Make a extra field with a number from the group the acount belongs&lt;/P&gt;&lt;P&gt;Greetz, dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153265#M502173</guid>
      <dc:creator />
      <dc:date>2010-10-21T14:23:12Z</dc:date>
    </item>
    <item>
      <title>Summarize fieldvalues in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153266#M502174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;You pointed me in the right direction.&lt;/P&gt;&lt;P&gt;I'm gonna use an Include file to insert this Flag field (this way people can use their own ranges).&lt;BR /&gt;Accountnrs and Flags are not likely to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD * INLINE [&lt;BR /&gt;Accountnr, Accounttype&lt;BR /&gt;$(Include=grootboek.inc)&lt;BR /&gt;];&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153266#M502174</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2010-10-21T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Summarize fieldvalues in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153267#M502175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created two Inputfields, inpBanking and inpStudy. I think you need one for every variable you want to use. The values are simple comma separated lists. Then for the variable vBanking you would use:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({&amp;lt;Accountnr = {$(=Only(inpBanking))}&amp;gt;} [Totaldeb])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;If you want the variable value to be the same regardless of dimension and selection, use: &lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sum({1&amp;lt;Accountnr = {$(=Only(inpBanking))}&amp;gt;} TOTAL [Totaldeb])&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;The principal would be the same for the other variables. I've attached a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153267#M502175</guid>
      <dc:creator />
      <dc:date>2010-10-21T14:52:56Z</dc:date>
    </item>
    <item>
      <title>Summarize fieldvalues in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153268#M502176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NMiller and Dirk,&lt;/P&gt;&lt;P&gt;One problem, Two solutions!&lt;BR /&gt;My only problem left is to choose the best one...&lt;/P&gt;&lt;P&gt;Thanks for thinking along&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 15:04:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153268#M502176</guid>
      <dc:creator>fred_s</dc:creator>
      <dc:date>2010-10-21T15:04:59Z</dc:date>
    </item>
    <item>
      <title>Summarize fieldvalues in Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153269#M502177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the group column&lt;/P&gt;&lt;P&gt;Variable value 1 =&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;sum({&amp;lt;Group ={'1'}&amp;gt;} Totaldeb)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 15:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Summarize-fieldvalues-in-Variable/m-p/153269#M502177</guid>
      <dc:creator />
      <dc:date>2010-10-21T15:09:39Z</dc:date>
    </item>
  </channel>
</rss>

