<?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: Sum based on selected field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797617#M668866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you upload a sample document ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 11:46:29 GMT</pubDate>
    <dc:creator>maleksafa</dc:creator>
    <dc:date>2014-11-21T11:46:29Z</dc:date>
    <item>
      <title>Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797612#M668857</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;I'm trying to calculate a sum based on a selected value from a field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my formula. What is wrong with it?&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Application = {$(vApplication)}[[Scheduled Loads])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, based on what selected value is in the Application List Box, I want to calculate the Scheduled Loads.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:29:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797612#M668857</guid>
      <dc:creator />
      <dc:date>2014-11-21T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797613#M668860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=sum({&amp;lt;Application={$(vApplication)}&amp;gt;}[Scheduled Loads])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my formula, sorry. Still not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797613#M668860</guid>
      <dc:creator />
      <dc:date>2014-11-21T11:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797614#M668861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Add quotes around variable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum({&amp;lt;Application={'$(vApplication)'}&amp;gt;}[Scheduled Loads])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797614#M668861</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-11-21T11:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797615#M668863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the variable vApplication contain only the application that you want to see then there is no need to add anything in your set analysis just sum([scheduled loads]) and it will take your selected application, now if you have another treatment for that you need to check if the vApplication is a string then you need to add quotes to your filter ={'$(vApplication)'}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797615#M668863</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-11-21T11:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797616#M668864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It will always display 0, regardless the selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797616#M668864</guid>
      <dc:creator />
      <dc:date>2014-11-21T11:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797617#M668866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you upload a sample document ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797617#M668866</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-11-21T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797618#M668868</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;If you are setting vApplication to whatever you have selected in the list box, then this is all redundant. You do not need the variable, and just use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=sum([Scheduled Loads]) in your expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want this to calculate or display unless something is selected, you can use conditional display or conditional calculation to prevent display or calculation if nothing is selected, for example:&amp;nbsp; =GetSelectedCount(Application) &amp;gt; 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:49:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797618#M668868</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-11-21T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797619#M668870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem here is that, if I have 2 selected values (out of 4 possible), I want two different numbers, not the overall sum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797619#M668870</guid>
      <dc:creator />
      <dc:date>2014-11-21T11:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797620#M668873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you need to add the application filed as a dimension, this way if you select 2 applications you will get one number for each selection&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 11:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797620#M668873</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-11-21T11:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797621#M668875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the document. Basically, if you see the bar chart, the numbers on the line are "hardcoded", but, what I want to do is whenever there is no value selected in Application, all 4 numbers should be there, but, when one, or two or three Applications are selected, I only want one, two or three number there, on the line graph.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:14:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797621#M668875</guid>
      <dc:creator />
      <dc:date>2014-11-21T12:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797622#M668877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it something like that? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:31:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797622#M668877</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-11-21T12:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797623#M668878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Close, but not quite what I want. The line should be horizontal. Basically, what you did with the numbers is perfect, however, it doesn't look how I need it. What I need is my "design" with your "implementation". How can that be done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797623#M668878</guid>
      <dc:creator />
      <dc:date>2014-11-21T12:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797624#M668880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but if you make the line horizontal then you mean that all the values across this line are equal which is not the case in your situation as the line value represent the scheduled load for each application. so for each application you will get a value which means that the line will not be horizontal, unless you want a static value across all dimensions like the average of the schedule load for all the applications.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:40:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797624#M668880</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-11-21T12:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797625#M668881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly, I want the line to be horizontal, but I want different values on it, like a threshold for each application, that's why my graph adds the numbers "hardcoded" from the Presentation tab. This approach is good as well, but how can I make the numbers modify depending on my selection. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797625#M668881</guid>
      <dc:creator />
      <dc:date>2014-11-21T12:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Sum based on selected field</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797626#M668882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i don't think the option of horizontal line will work, now for the approach that i gave you, the numbers are changing if you select different applications, however with the date it is not working as your schema is not linked, you need to redesign your schema so that the tables are linked between Date field and [Week Ending] date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 12:49:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-based-on-selected-field/m-p/797626#M668882</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-11-21T12:49:11Z</dc:date>
    </item>
  </channel>
</rss>

