<?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: QlikView UOM Conversions Not Working in Table F4111 in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2434620#M96908</link>
    <description>&lt;P&gt;Thank you so much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Mar 2024 09:38:34 GMT</pubDate>
    <dc:creator>MarioGabriel</dc:creator>
    <dc:date>2024-03-26T09:38:34Z</dc:date>
    <item>
      <title>QlikView UOM Conversions Not Working in Table F4111</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2156480#M93902</link>
      <description>&lt;P&gt;I'm currently working on a QlikView script to convert quantities from CA to EA and DS in the F4111 table using a mapping table. However, I'm facing challenges with the conversions not producing the expected results. I'm looking for assistance to troubleshoot and resolve this issue. Below, I've detailed my script and included a screenshot of the UOM table for reference.&lt;/P&gt;
&lt;P&gt;```qlikview&lt;BR /&gt;// Map Net_Quantity_xx to Month names&lt;BR /&gt;MonthMap:&lt;BR /&gt;Mapping LOAD * Inline [&lt;BR /&gt;Net_Quantity_Field, Month_Name&lt;BR /&gt;Net_Quantity_01, Jan&lt;BR /&gt;Net_Quantity_02, Feb&lt;BR /&gt;Net_Quantity_03, Mar&lt;BR /&gt;Net_Quantity_04, Apr&lt;BR /&gt;Net_Quantity_05, May&lt;BR /&gt;Net_Quantity_06, Jun&lt;BR /&gt;Net_Quantity_07, Jul&lt;BR /&gt;Net_Quantity_08, Aug&lt;BR /&gt;Net_Quantity_09, Sep&lt;BR /&gt;Net_Quantity_10, Oct&lt;BR /&gt;Net_Quantity_11, Nov&lt;BR /&gt;Net_Quantity_12, Dec&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;// Load the data from the QVD file and apply the crosstable transformation&lt;BR /&gt;CrosstableData:&lt;BR /&gt;Crosstable(MonthNumber, Quantity, 16)&lt;BR /&gt;LOAD &lt;BR /&gt;company_key, &lt;BR /&gt;Document_Type, &lt;BR /&gt;Fiscal_Year + 2000 as Fiscal_Year,&lt;BR /&gt;...&lt;BR /&gt;Net_Quantity_12 &lt;BR /&gt;FROM [D:\JDE\QVDs\Entities\asofbalance.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;// Applying MonthMap and Creating AsofData&lt;BR /&gt;AsofData:&lt;BR /&gt;LOAD &lt;BR /&gt;Fiscal_Year,&lt;BR /&gt;business_unit_key,&lt;BR /&gt;Lot_Serial_Number,&lt;BR /&gt;Trim((ApplyMap('MonthMap', MonthNumber))) as MONTH,&lt;BR /&gt;Quantity,&lt;BR /&gt;CompositeKey&lt;BR /&gt;Resident CrosstableData;&lt;/P&gt;
&lt;P&gt;DROP Table CrosstableData;&lt;/P&gt;
&lt;P&gt;// UOM Conversion Mapping&lt;BR /&gt;ConversionMap:&lt;BR /&gt;MAPPING LOAD &lt;BR /&gt;product_key &amp;amp; '|' &amp;amp; upper(FromUM) &amp;amp; '|' &amp;amp; upper(ToUM) as product_uom_key, &lt;BR /&gt;ConversionToPrimaryUOM&lt;BR /&gt;FROM [D:\JDE\QVDs\Entities\UOM.qvd] (qvd)&lt;BR /&gt;WHERE upper(FromUM) = 'CA' AND upper(ToUM) = 'EA' OR 'DS';&lt;/P&gt;
&lt;P&gt;// Loading F4111 and Applying Conversions&lt;BR /&gt;F4111:&lt;BR /&gt;LOAD &lt;BR /&gt;document_type, &lt;BR /&gt;document_number, &lt;BR /&gt;business_unit_key &amp;amp; '|' &amp;amp; product_key as CompositeKey, &lt;BR /&gt;...&lt;BR /&gt;product_key &amp;amp; '|' &amp;amp; upper(trans_uom_ledger) &amp;amp; '|EA' as conversion_key,&lt;BR /&gt;...&lt;BR /&gt;If(upper(trans_uom_ledger) = 'CA', &lt;BR /&gt;quantity_puom * ApplyMap('ConversionMap', conversion_key, 1), &lt;BR /&gt;quantity_puom) as Converted_quantity_puom &lt;BR /&gt;FROM [D:\JDE\QVDs\Entities\inventory_trx.qvd] (qvd)&lt;BR /&gt;WHERE Year(trx_date) &amp;lt;= Year(Today());&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;```&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Quantities in CA should be converted to their corresponding values in EA and DS based on the &lt;CODE&gt;ConversionMap&lt;/CODE&gt; table. The &lt;CODE&gt;Converted_quantity_puom&lt;/CODE&gt; field is expected to contain these converted values.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What debugging techniques or tools in QlikView can I use to trace the conversion process and identify the source of the issue?&lt;/LI&gt;
&lt;LI&gt;Could there be a problem with how I'm using the &lt;CODE&gt;ApplyMap&lt;/CODE&gt; function or constructing the &lt;CODE&gt;conversion_key&lt;/CODE&gt;?&lt;/LI&gt;
&lt;LI&gt;Are there alternative methods for achieving these UOM conversions within QlikView?&lt;/LI&gt;
&lt;LI&gt;Might there be data quality issues or inconsistencies in the source data or mapping table?&lt;/LI&gt;
&lt;LI&gt;Are there any known limitations or best practices related to UOM conversions in QlikView that I should consider?&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Any insights or suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2156480#M93902</guid>
      <dc:creator>MarioGB</dc:creator>
      <dc:date>2024-11-15T21:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView UOM Conversions Not Working in Table F4111</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2157987#M93903</link>
      <description>&lt;P&gt;Are you sure this part is working?? there is no error?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jochem_zw_0-1704301678393.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/126505i5BEFF0CB897D86FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jochem_zw_0-1704301678393.png" alt="jochem_zw_0-1704301678393.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;this should be:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;WHERE upper(FromUM) = 'CA' AND (upper(ToUM) = 'EA' OR upper(ToUM) ='DS');&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 17:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2157987#M93903</guid>
      <dc:creator>jochem_zw</dc:creator>
      <dc:date>2024-01-03T17:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView UOM Conversions Not Working in Table F4111</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2159039#M93959</link>
      <description>&lt;P&gt;You can make the changes suggested by&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18235"&gt;@jochem_zw&lt;/a&gt;&amp;nbsp;or you can try below.&lt;/P&gt;
&lt;P&gt;Where Wildmatch(FromUM,'CA') and Wildmatch(ToUM,'EA','DS')&lt;/P&gt;
&lt;P&gt;The wildmatch function will disregard the case of the text.&lt;/P&gt;
&lt;P&gt;If you need an exact case i.e. upper case you can replace wildmatch to match.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 10:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2159039#M93959</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2024-01-08T10:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView UOM Conversions Not Working in Table F4111</title>
      <link>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2434620#M96908</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2024 09:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QlikView-UOM-Conversions-Not-Working-in-Table-F4111/m-p/2434620#M96908</guid>
      <dc:creator>MarioGabriel</dc:creator>
      <dc:date>2024-03-26T09:38:34Z</dc:date>
    </item>
  </channel>
</rss>

