<?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 Load Custom Values? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Custom-Values/m-p/201736#M59717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to add a value a custom value (commission_cost) to my margin. The margin calculation is: sum(extended_price-(commission_cost*qty_shipped)). Basically the application/DB QV is reading from does not allow us to enter a value for this particular order type but we still want it to count towards our margin. I do not want to edit the DB to add in these values manually. So I wondering if QV could 'add' this custom value and associate it correctly. Is this possible?&lt;/P&gt;&lt;P&gt;It needs to be associated with commission_cost with order_no (to link it up), extended_price, qty_shipped all needed to calculate. Order_no, commission_cost, extended_price and qty_shipped all pulled from the same table (TotalSales). I believe this should help. I think a resident load would work but I unsure of syntax linkage. It usually ends up breaking something else or creating lots of ugly sync tables. So I must be doing something wrong.&lt;/P&gt;&lt;P&gt;This is what i tried:&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;CustomCommission:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;order_no, commission_cost&lt;BR /&gt;9052813 , 6000];&lt;BR /&gt;CustomExtended_price:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;order_no, extended_price&lt;BR /&gt;9052813 , 0];&lt;BR /&gt;CustomQty_Shipped:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;order_no, qty_shipped&lt;BR /&gt;9052813 , 0];&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This works but I dislike having to add it to the margin:&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;&lt;BR /&gt;CustomCommission:&lt;BR /&gt;LOAD order_no,&lt;BR /&gt; commission_cost AS com_co&lt;BR /&gt;FROM&lt;BR /&gt;C:\commission.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Com);&lt;BR /&gt;//then I use this to add it to the margin in my pivot table&lt;BR /&gt;sum(extended_price-(commission_cost*qty_shipped)))+sum(com_co)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So I would like my logic to be: (I do not think this exists but ideal...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(order_no = '9052813') THEN extended_price = '0' , commission_cost = '6000', qty_shipped = '0'&lt;/P&gt;&lt;P&gt;RESIDENT Total Sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any assistance you can offer. This solution may be easier than the approach I am taking if so let me know. Thanks once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Feb 2011 22:34:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-04T22:34:42Z</dc:date>
    <item>
      <title>Load Custom Values?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Custom-Values/m-p/201736#M59717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to add a value a custom value (commission_cost) to my margin. The margin calculation is: sum(extended_price-(commission_cost*qty_shipped)). Basically the application/DB QV is reading from does not allow us to enter a value for this particular order type but we still want it to count towards our margin. I do not want to edit the DB to add in these values manually. So I wondering if QV could 'add' this custom value and associate it correctly. Is this possible?&lt;/P&gt;&lt;P&gt;It needs to be associated with commission_cost with order_no (to link it up), extended_price, qty_shipped all needed to calculate. Order_no, commission_cost, extended_price and qty_shipped all pulled from the same table (TotalSales). I believe this should help. I think a resident load would work but I unsure of syntax linkage. It usually ends up breaking something else or creating lots of ugly sync tables. So I must be doing something wrong.&lt;/P&gt;&lt;P&gt;This is what i tried:&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;CustomCommission:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;order_no, commission_cost&lt;BR /&gt;9052813 , 6000];&lt;BR /&gt;CustomExtended_price:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;order_no, extended_price&lt;BR /&gt;9052813 , 0];&lt;BR /&gt;CustomQty_Shipped:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;order_no, qty_shipped&lt;BR /&gt;9052813 , 0];&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;This works but I dislike having to add it to the margin:&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;&lt;BR /&gt;CustomCommission:&lt;BR /&gt;LOAD order_no,&lt;BR /&gt; commission_cost AS com_co&lt;BR /&gt;FROM&lt;BR /&gt;C:\commission.xlsx&lt;BR /&gt;(ooxml, embedded labels, table is Com);&lt;BR /&gt;//then I use this to add it to the margin in my pivot table&lt;BR /&gt;sum(extended_price-(commission_cost*qty_shipped)))+sum(com_co)&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So I would like my logic to be: (I do not think this exists but ideal...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(order_no = '9052813') THEN extended_price = '0' , commission_cost = '6000', qty_shipped = '0'&lt;/P&gt;&lt;P&gt;RESIDENT Total Sales:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any assistance you can offer. This solution may be easier than the approach I am taking if so let me know. Thanks once again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 22:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Custom-Values/m-p/201736#M59717</guid>
      <dc:creator />
      <dc:date>2011-02-04T22:34:42Z</dc:date>
    </item>
    <item>
      <title>AW:Load Custom Values?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Custom-Values/m-p/201737#M59718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jacob,&lt;/P&gt;&lt;P&gt;if I got you right, you should try the following reload-code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;//Input from DB-Table TotalSales:&lt;BR /&gt;&lt;BR /&gt; TotalSales:&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; order_no, commission_cost&lt;BR /&gt; 9052813 , 6000];&lt;BR /&gt;&lt;BR /&gt; Join(TotalSales)&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; order_no, extended_price&lt;BR /&gt; 9052813 , 0];&lt;BR /&gt;&lt;BR /&gt; Join(TotalSales)&lt;BR /&gt; LOAD * INLINE [&lt;BR /&gt; order_no, qty_shipped&lt;BR /&gt; 9052813 , 0];&lt;BR /&gt;//&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;// Now QV-Join com_co from excel to DB-data:&lt;BR /&gt;// Hope that order_no is a unique field&lt;BR /&gt;Join(TotalSales)&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;order_no, com_co&lt;BR /&gt;9052813 , 10];&lt;BR /&gt;&lt;BR /&gt;//&lt;BR /&gt;//sum(extended_price-(commission_cost*qty_shipped)))+sum(com_co)&lt;BR /&gt;//now do the calc as you like during resident load&lt;BR /&gt;//&lt;BR /&gt;Join(TotalSales)&lt;BR /&gt;LOAD&lt;BR /&gt; *,&lt;BR /&gt; extended_price-(commission_cost*qty_shipped) + com_co AS SomeThing&lt;BR /&gt;Resident TotalSales;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Feb 2011 17:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Custom-Values/m-p/201737#M59718</guid>
      <dc:creator />
      <dc:date>2011-02-05T17:19:09Z</dc:date>
    </item>
    <item>
      <title>AW:Load Custom Values?</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Custom-Values/m-p/201738#M59719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like the logic. The Resident load correctly loading is correct. I would like the sum(commission_cost + com_co) = new_commission_cost. Then in all my other equations I can just update old commission_cost with 'new_commission_cost' but it is still loading all the commission_costs...&lt;/P&gt;&lt;P&gt;I will play some more and post back. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 17:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Custom-Values/m-p/201738#M59719</guid>
      <dc:creator />
      <dc:date>2011-02-07T17:42:10Z</dc:date>
    </item>
  </channel>
</rss>

