<?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 Reg : Expression / Script Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reg-Expression-Script-Help/m-p/421774#M701296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Please find the solution for the same, If the scenario is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;1&lt;SUP&gt;st&lt;/SUP&gt; Condition &lt;/STRONG&gt;– I have 2 Dimension – Customer Code and PH, If Customer Code is null please &lt;/P&gt;&lt;P style="text-align: justify;"&gt;Ignore by is null function in code or expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;2&lt;SUP&gt;nd&lt;/SUP&gt; Condition&lt;/STRONG&gt; – How many PH have one reason code and if the PH consists single Reason&amp;nbsp; Code, then check the Net Collectable Amt. is less then (RA1 or RA2),&amp;nbsp; and if the condition is true, then assign same Net Collectable Amt. to (RA1 or RA2) where ever Reason Code is available for the Reason Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;For Example : - &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 362px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="97"&gt;PH&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="51"&gt;RA1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="34"&gt;RA2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="116"&gt;Net_Collectable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" style="border-top: none;"&gt;INGJVANZ908&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;2.6294&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0.0708&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Here for the same PH have single Reason Code 1 and Also single Reason Amount, But If we will check the net Collectable, It is less than from the Reason Amount 1. Then we have to assign that Net Collectable amount to Reason Amount 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;i.e. Output&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 362px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="97"&gt;PH&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="51"&gt;RA1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="34"&gt;RA2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="116"&gt;Net_Collectable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" style="border-top: none;"&gt;INGJVANZ908&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0.0708&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0.0708&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find the attached excel for the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;A K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2012 11:49:37 GMT</pubDate>
    <dc:creator>sona_sa</dc:creator>
    <dc:date>2012-09-19T11:49:37Z</dc:date>
    <item>
      <title>Reg : Expression / Script Help</title>
      <link>https://community.qlik.com/t5/QlikView/Reg-Expression-Script-Help/m-p/421774#M701296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="text-align: justify;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Please find the solution for the same, If the scenario is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;1&lt;SUP&gt;st&lt;/SUP&gt; Condition &lt;/STRONG&gt;– I have 2 Dimension – Customer Code and PH, If Customer Code is null please &lt;/P&gt;&lt;P style="text-align: justify;"&gt;Ignore by is null function in code or expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;2&lt;SUP&gt;nd&lt;/SUP&gt; Condition&lt;/STRONG&gt; – How many PH have one reason code and if the PH consists single Reason&amp;nbsp; Code, then check the Net Collectable Amt. is less then (RA1 or RA2),&amp;nbsp; and if the condition is true, then assign same Net Collectable Amt. to (RA1 or RA2) where ever Reason Code is available for the Reason Amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;For Example : - &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 362px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="97"&gt;PH&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="51"&gt;RA1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="34"&gt;RA2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="116"&gt;Net_Collectable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" style="border-top: none;"&gt;INGJVANZ908&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;2.6294&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0.0708&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Here for the same PH have single Reason Code 1 and Also single Reason Amount, But If we will check the net Collectable, It is less than from the Reason Amount 1. Then we have to assign that Net Collectable amount to Reason Amount 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;STRONG&gt;i.e. Output&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 362px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="21" width="97"&gt;PH&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="32"&gt;RC2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="51"&gt;RA1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="34"&gt;RA2&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="116"&gt;Net_Collectable&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" style="border-top: none;"&gt;INGJVANZ908&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0.0708&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0.0708&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find the attached excel for the same.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;A K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 11:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reg-Expression-Script-Help/m-p/421774#M701296</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2012-09-19T11:49:37Z</dc:date>
    </item>
  </channel>
</rss>

