<?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: Logic needed in qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1553934#M743596</link>
    <description>&lt;P&gt;The below code is not working as Autoposted field is not found. we cant do preceding load on this.&amp;nbsp; Is there anyway to solve this issue.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 04:00:16 GMT</pubDate>
    <dc:creator>andrea0901</dc:creator>
    <dc:date>2019-03-08T04:00:16Z</dc:date>
    <item>
      <title>Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552651#M743589</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Please help me out . I have written the code as below: just an sample code.&lt;/P&gt;&lt;P&gt;In my first tab, i am using a binary load, and in that QVW my table name is ABCD.&lt;/P&gt;&lt;P&gt;In my second tab doing some transformations taking the resident of ABCD, below is the code:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;temp1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Applymap('T1',CC) as Test1,&lt;/P&gt;&lt;P&gt;if(P1= 'No', IF(ApplyMap('T2',CC)&amp;lt;=R1,'ICC','SAP'),If(ApplyMap('T3',CC)&amp;lt;=R1,'ICC','SAP')) as Live,&lt;/P&gt;&lt;P&gt;if((T4='MR1M' and LEFT(P1,1)&amp;lt;&amp;gt;3)OR (P2='BAPI_OCR'AND P1='BAPI_OCR'),'Automatic','NotAutomatic') as Autoposted&lt;/P&gt;&lt;P&gt;Resident ABCD;&lt;/P&gt;&lt;P&gt;drop table ABCD;&lt;/P&gt;&lt;P&gt;Store&amp;nbsp;temp1 into temp1.qvd(qvd);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Load P1,&lt;/P&gt;&lt;P&gt;Test1,&lt;/P&gt;&lt;P&gt;Live,&lt;/P&gt;&lt;P&gt;Autoposted&lt;/P&gt;&lt;P&gt;Resident&amp;nbsp;temp1 ;&lt;/P&gt;&lt;P&gt;drop table temp1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem here is :&amp;nbsp;&lt;/P&gt;&lt;P&gt;in temp2 table i have added all the column names from temp1 table. Now i have to add a new logic to Live field whcih i have mentioned in temp1 table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic is : when Autoposted = Automatic and P1 = BAPI_OCR' and P2 =&amp;nbsp;BAPI_OCR' then my Live&amp;nbsp; field should show "ICC" otherwise "SAP".&amp;nbsp;&lt;/P&gt;&lt;P&gt;if i add this logic in temp1 autoposted i am deriving with som logic so i am unable to use Autposted field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me out to include the logic.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552651#M743589</guid>
      <dc:creator>andrea0901</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552730#M743590</link>
      <description>Hi, just to clarify me where do you want to see the new logic condition in temp1 or in temp2?</description>
      <pubDate>Wed, 06 Mar 2019 07:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552730#M743590</guid>
      <dc:creator>albert_guito</dc:creator>
      <dc:date>2019-03-06T07:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552732#M743591</link>
      <description>&lt;P&gt;i need the new logic in temp2 table.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 07:36:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552732#M743591</guid>
      <dc:creator>andrea0901</dc:creator>
      <dc:date>2019-03-06T07:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552737#M743592</link>
      <description>Temp2:&lt;BR /&gt;NoConcatenate&lt;BR /&gt;Load&lt;BR /&gt;P1,&lt;BR /&gt;Test1,&lt;BR /&gt;If ( Autoposted ='Automatic' and P1 = 'BAPI_OCR' and P2 = 'BAPI_OCR'&lt;BR /&gt;,'ICC'&lt;BR /&gt;,'SAP'&lt;BR /&gt;) as Live,&lt;BR /&gt;Autoposted&lt;BR /&gt;Resident temp1 ;&lt;BR /&gt;&lt;BR /&gt;Is not running well for you?</description>
      <pubDate>Wed, 06 Mar 2019 07:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552737#M743592</guid>
      <dc:creator>albert_guito</dc:creator>
      <dc:date>2019-03-06T07:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552738#M743593</link>
      <description>&lt;P&gt;But you have already written the transformation on Live Column&amp;nbsp; in Temp 1 like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(P1= 'No', IF(ApplyMap('T2',CC)&amp;lt;=R1,'ICC','SAP'),If(ApplyMap('T3',CC)&amp;lt;=R1,'ICC','SAP')) as Live,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so do you not want this transformation to apply and would like to overwrite Live with new logic?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 07:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552738#M743593</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-03-06T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552786#M743594</link>
      <description>&lt;P&gt;yes, u r correct.&amp;nbsp; i need the logic to be same in temp1 and top of this i need to add the logic . But if i add in temp1 the new logic, i need to have Autoposted field which i am calculating Autposted in temp1.&lt;/P&gt;&lt;P&gt;So i cant write the logic in temp1.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2019 08:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552786#M743594</guid>
      <dc:creator>andrea0901</dc:creator>
      <dc:date>2019-03-06T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552807#M743595</link>
      <description>&lt;P&gt;In this case you have to use a precedent load in temp1 but original Live not make sense because it will be replaced.&lt;/P&gt;&lt;P&gt;I've replace the label as tmp_Live to not loose these field.&lt;/P&gt;&lt;PRE&gt;temp1:

Load *,&amp;nbsp;If ( Autoposted ='Automatic' and P1 = 'BAPI_OCR' and P2 = 'BAPI_OCR','ICC','SAP') as Live;
Load *,
Applymap('T1',CC) as Test1,
if(P1= 'No', IF(ApplyMap('T2',CC)&amp;lt;=R1,'ICC','SAP'),If(ApplyMap('T3',CC)&amp;lt;=R1,'ICC','SAP')) as tmp_Live,
if((T4='MR1M' and LEFT(P1,1)&amp;lt;&amp;gt;3)OR (P2='BAPI_OCR'AND P1='BAPI_OCR'),'Automatic','NotAutomatic') as Autoposted
Resident ABCD;

drop table ABCD;

Store&amp;nbsp;temp1 into temp1.qvd(qvd);&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Mar 2019 09:28:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1552807#M743595</guid>
      <dc:creator>albert_guito</dc:creator>
      <dc:date>2019-03-06T09:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Logic needed in qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1553934#M743596</link>
      <description>&lt;P&gt;The below code is not working as Autoposted field is not found. we cant do preceding load on this.&amp;nbsp; Is there anyway to solve this issue.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 04:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Logic-needed-in-qlikview/m-p/1553934#M743596</guid>
      <dc:creator>andrea0901</dc:creator>
      <dc:date>2019-03-08T04:00:16Z</dc:date>
    </item>
  </channel>
</rss>

