<?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: Mapping in/between the fields in order to do the calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984592#M644763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;Hi, I've attached a simpe qvw and 3 excel files : " Test print.xls" is the database and "result.xls" the table i what to show in the report. In the qvw you could see the calculations are done per plant instead of per line. Thanks to let me know if it's not clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 17:49:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-02T17:49:05Z</dc:date>
    <item>
      <title>Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984586#M644756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to create a mapping like this.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&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;plant name&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;print center1&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;print line1&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;print center2&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;print line2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;D1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;33CUX345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;P-2C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32CUX345&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PCO-2C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;33CUX363&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;P-4C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32CUX363&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PCO-4C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;F1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;33LAFP02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;P-6C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32LAFP02&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PCO-6C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;I1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;33INCB79&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;P-6CFOV&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;32INCB79&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;PCO-6CFOV&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;For each plant, by using this mapping, I should calculate &lt;STRONG&gt;the volume of print line1&lt;/STRONG&gt; divided by &lt;STRONG&gt;the volume of print line2&lt;/STRONG&gt;. The calculation should also be available at print center niveau.&lt;/P&gt;&lt;P&gt;All the "print center1 and print center2" (e.g. 33CUX345) are the different elements in the same field"print center".&lt;/P&gt;&lt;P&gt;and all the "print line1 and print line2" are the elements of the same field "print line".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i wrote down in the script :&lt;/P&gt;&lt;P&gt;Print:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;_plant, _print_c1, _print_lin1, _print_c2, _print_lin2,&lt;/P&gt;&lt;P&gt;D1, 33CUX345, P-2C, 32CUX345, PCO-2C&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current expression is :&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Version='Actual', Year='2015', Department_code={3}, _Print_lin1={*}, _Print_c1={*}&amp;gt;}Volume)/sum({&amp;lt;Version='Actual', Year='2015', Department_code={9}, _Print_lin2={*}, _Print_c2={*}&amp;gt;}Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To separate the print centre1 and 2, i use their "department_code" ("3" is print center1 and "9" is center2).&lt;/P&gt;&lt;P&gt;For now the calculations don't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know where the problem is? in the script or in the expression or in both of them?&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ce message a été modifié par&amp;nbsp;: Q H&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 16:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984586#M644756</guid>
      <dc:creator />
      <dc:date>2015-11-25T16:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984587#M644757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your set analysis seems to be the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;you need to add curly brackets to every set&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Version={'Actual'}, Year={'2015'}, Department_code={3}, _Print_lin1={*}, _Print_c1={*}&amp;gt;}Volume)/sum({&amp;lt;Version={'Actual'}, Year={'2015'}, Department_code={9}, _Print_lin2={*}, _Print_c2={*}&amp;gt;}Volume)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 17:10:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984587#M644757</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-11-25T17:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984588#M644758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tks for the comments!&lt;/P&gt;&lt;P&gt;I add them now but still don't work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 17:24:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984588#M644758</guid>
      <dc:creator />
      <dc:date>2015-11-25T17:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984589#M644759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Try this &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum({&amp;lt;Version={'Actual'}, Year={2015}, Department_code={3}&amp;gt;}Volume)/sum({&amp;lt;Version={'Actual'}, Year={2015}, Department_code={9}&amp;gt;}Volume).&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Or show us some example qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 17:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984589#M644759</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2015-11-25T17:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984590#M644761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks but don't work neither&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 17:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984590#M644761</guid>
      <dc:creator />
      <dc:date>2015-11-26T17:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984591#M644762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, put that same expression inside of a text box, does it say if you have an error in it ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 15:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984591#M644762</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-11-30T15:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984592#M644763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;Hi, I've attached a simpe qvw and 3 excel files : " Test print.xls" is the database and "result.xls" the table i what to show in the report. In the qvw you could see the calculations are done per plant instead of per line. Thanks to let me know if it's not clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 17:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984592#M644763</guid>
      <dc:creator />
      <dc:date>2015-12-02T17:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984593#M644764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i've attached 1 simple qvw and 3 excel files.&lt;/P&gt;&lt;P&gt;Thanks to let me know if it's not clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 17:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984593#M644764</guid>
      <dc:creator />
      <dc:date>2015-12-02T17:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping in/between the fields in order to do the calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984594#M644767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;try this expressions: 1) sum(if(gp_pr=gp,quantity)) 2) sum(if(gp_co=gp,quantity))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 07:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-in-between-the-fields-in-order-to-do-the-calculations/m-p/984594#M644767</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2015-12-03T07:13:48Z</dc:date>
    </item>
  </channel>
</rss>

