<?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: Unit of measure conversion help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672537#M244252</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;Use mapping load of your Conversion table for each product (if it has format Product - Conversion) and ApplyMap() function in script to create new field cases. The same thing with litres.&lt;/P&gt;&lt;P&gt;In the end you will get all possible formats (hectolitres/litres/cases) in different fields and then you'll be able to use all of them as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 13:31:38 GMT</pubDate>
    <dc:creator>crusader_</dc:creator>
    <dc:date>2014-09-23T13:31:38Z</dc:date>
    <item>
      <title>Unit of measure conversion help</title>
      <link>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672536#M244251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help with converting units of measure. I need the ability to see the measures in litres or cases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, all my measures are coming into Qlikview with the hectolitre measurement. It is easy for me to change all of it to litres because it is a 1 to 1 relationship between litres and hectolitres. However, I have different conversion to change it into cases because each package has a different conversion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table that gives me the conversion for each product in liters and cases. What is the best way to convert this or do this so that I have the ability to change the coming numbers from hectolitres to cases or liters. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 13:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672536#M244251</guid>
      <dc:creator />
      <dc:date>2014-09-23T13:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unit of measure conversion help</title>
      <link>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672537#M244252</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;Use mapping load of your Conversion table for each product (if it has format Product - Conversion) and ApplyMap() function in script to create new field cases. The same thing with litres.&lt;/P&gt;&lt;P&gt;In the end you will get all possible formats (hectolitres/litres/cases) in different fields and then you'll be able to use all of them as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 13:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672537#M244252</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-09-23T13:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unit of measure conversion help</title>
      <link>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672538#M244253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have an example app for this? i'm not familiar with ApplyMap function..that's why&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 13:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672538#M244253</guid>
      <dc:creator />
      <dc:date>2014-09-23T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unit of measure conversion help</title>
      <link>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672539#M244254</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;Use Mapping Load and Apply Map function.&lt;/P&gt;&lt;P&gt;Post your conversion table for example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 13:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672539#M244254</guid>
      <dc:creator>demoustier</dc:creator>
      <dc:date>2014-09-23T13:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Unit of measure conversion help</title>
      <link>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672540#M244255</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 suppose you have a Data Table with your Product, Quantity and Unit. Somethoing like this:&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 240px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;Product&lt;/TD&gt;&lt;TD width="80"&gt;Unit&lt;/TD&gt;&lt;TD width="80"&gt;Qty&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;water&lt;/TD&gt;&lt;TD&gt;bottle&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;alchool&lt;/TD&gt;&lt;TD&gt;liter&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;juice&lt;/TD&gt;&lt;TD&gt;pieces&lt;/TD&gt;&lt;TD align="right"&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also have a table with correspondance between Unit and your final measurmentrequired like below:&lt;/P&gt;&lt;P&gt;transco:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="160"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="80"&gt;Unit&lt;/TD&gt;&lt;TD width="80"&gt;In liter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;bottle&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;liter&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;pieces&lt;/TD&gt;&lt;TD align="right"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you can use Aplly Map function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;transco:&lt;/P&gt;&lt;P&gt;Load * resident transco;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Product,&lt;/P&gt;&lt;P&gt;Qty*ApplyMap('transco',Unit) as Qty_in_liter&lt;/P&gt;&lt;P&gt;resident Data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 13:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672540#M244255</guid>
      <dc:creator>demoustier</dc:creator>
      <dc:date>2014-09-23T13:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unit of measure conversion help</title>
      <link>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672541#M244256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Small example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some_map:&lt;/P&gt;&lt;P&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product, Litres&lt;/P&gt;&lt;P&gt;milk, 1.3&lt;/P&gt;&lt;P&gt;fuel, 1.4&lt;/P&gt;&lt;P&gt;gas, 0.9&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp; , ApplyMap('some_map',Product,0)*Hectalitres as Litres //Means Hectalitres*convertion=Litres&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Product, Hectalitres&lt;/P&gt;&lt;P&gt;milk, 1400&lt;/P&gt;&lt;P&gt;fuel, 900&lt;/P&gt;&lt;P&gt;gas, 833&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used Precending LOAD with Applymap function - the best way to escape several useless same resident loads.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 13:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unit-of-measure-conversion-help/m-p/672541#M244256</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2014-09-23T13:58:43Z</dc:date>
    </item>
  </channel>
</rss>

