<?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: Help with expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641687#M1086930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had your&amp;nbsp; attachment been in English, would have been easier. Not sure if understood right. Try with set analysis p(),&amp;nbsp; like:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;account_manager_id = p(sales_person_id)&amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 08:40:14 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-06-06T08:40:14Z</dc:date>
    <item>
      <title>Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641683#M1086926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need some held with the expression for the Total Sales column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 825px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" width="115"&gt;account_manager_id&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="131"&gt;Acount_manager_name&lt;/TD&gt;&lt;TD class="xl65" width="114"&gt;Sales_budget&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="126"&gt;R12 -Responsible Accounts&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="130"&gt;YTD - Responsible Accounts&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="123"&gt;R1 - Responsible Accounts&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="86"&gt;Total Sales&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Kim&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;319 753&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;107 391&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;91 436&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;50&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Stephan&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;272 800&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;438 740&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;153 409&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;34 181&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;57&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Jill&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;150 000&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;53 633&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;45 405&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="18" style="border-top: none;"&gt;73&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Adam&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1 585 200&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1 535 223&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;905 425&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;181 183&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Total Sales column i want to have the calculation&lt;/P&gt;&lt;P&gt;sum (sales) where account_manager_id from Staff_Table = sales_person_id in Sales_Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The total sales shall include all sales from each account manager, doesn't matter if he/she is responsible for that account or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone please can help me code the expression that is needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 21:55:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641683#M1086926</guid>
      <dc:creator />
      <dc:date>2014-06-05T21:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641684#M1086927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post an example? Otherwise, perhaps this will work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;account_manager_id = sales_person_id, sales))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 00:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641684#M1086927</guid>
      <dc:creator />
      <dc:date>2014-06-06T00:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641685#M1086928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is almost correct, the only thing is that it only shows me the total sales where the account manager is the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct amount in this example should be 6,3 million&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 00:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641685#M1086928</guid>
      <dc:creator />
      <dc:date>2014-06-06T00:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641686#M1086929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*bump*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 08:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641686#M1086929</guid>
      <dc:creator />
      <dc:date>2014-06-06T08:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641687#M1086930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had your&amp;nbsp; attachment been in English, would have been easier. Not sure if understood right. Try with set analysis p(),&amp;nbsp; like:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;account_manager_id = p(sales_person_id)&amp;gt;} sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 08:40:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641687#M1086930</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-06T08:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641688#M1086931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still unclear on what you need. This makes sense to me and is solved with the sum/if expression: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum (sales) where account_manager_id from Staff_Table = sales_person_id in Sales_Table&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I'm not sure how to interpret this: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The total sales shall include all sales from each account manager, doesn't matter if he/she is responsible for that account or not.&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;&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;Could you elaborate? Perhaps include an excel showing how you calculate the 6.3 million or include a better explanation in the qvw.&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;&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;Matt&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 23:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-expression/m-p/641688#M1086931</guid>
      <dc:creator />
      <dc:date>2014-06-08T23:07:09Z</dc:date>
    </item>
  </channel>
</rss>

