<?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 Need formula for a scenario in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1895843#M73908</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have below scenario.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vish123_0-1645524820343.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72791i1ECAACCC9E7DC34A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vish123_0-1645524820343.png" alt="vish123_0-1645524820343.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As per above scenario , i need to display conflict as a value in column4 when&amp;nbsp;&lt;/P&gt;
&lt;P&gt;column1 = previous (column1) and&amp;nbsp;column2 = previous (column2) and&amp;nbsp;column3 &amp;lt;&amp;gt; previous (column3) then conflict&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this scenario i need conflict value in both rows that matches above scenario. Can you please help me with formula.&lt;/P&gt;
&lt;P&gt;Here is the dummy data :&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;BR /&gt;Column1 ,Column2, Column3&lt;BR /&gt;A, A ,BBC&lt;BR /&gt;A, A ,BBC1&lt;BR /&gt;C, C, ABC&lt;BR /&gt;C, C ,Some&lt;BR /&gt;D, D ,Some1&lt;BR /&gt;D, D ,Some1&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;Table2:&lt;BR /&gt;load *,&lt;/P&gt;
&lt;P&gt;if(&lt;BR /&gt;Column1 = previous(Column1) and Column2 = previous(Column2) and Column3 &amp;lt;&amp;gt; previous(Column3),&lt;BR /&gt;'Conflict','NA') as Column4&lt;BR /&gt;resident Table1;&lt;/P&gt;
&lt;P&gt;drop table Table1;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 10:17:35 GMT</pubDate>
    <dc:creator>vish123</dc:creator>
    <dc:date>2022-02-22T10:17:35Z</dc:date>
    <item>
      <title>Need formula for a scenario in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1895843#M73908</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I have below scenario.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vish123_0-1645524820343.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72791i1ECAACCC9E7DC34A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vish123_0-1645524820343.png" alt="vish123_0-1645524820343.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As per above scenario , i need to display conflict as a value in column4 when&amp;nbsp;&lt;/P&gt;
&lt;P&gt;column1 = previous (column1) and&amp;nbsp;column2 = previous (column2) and&amp;nbsp;column3 &amp;lt;&amp;gt; previous (column3) then conflict&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this scenario i need conflict value in both rows that matches above scenario. Can you please help me with formula.&lt;/P&gt;
&lt;P&gt;Here is the dummy data :&lt;/P&gt;
&lt;P&gt;Table1:&lt;/P&gt;
&lt;P&gt;Load * Inline [&lt;BR /&gt;Column1 ,Column2, Column3&lt;BR /&gt;A, A ,BBC&lt;BR /&gt;A, A ,BBC1&lt;BR /&gt;C, C, ABC&lt;BR /&gt;C, C ,Some&lt;BR /&gt;D, D ,Some1&lt;BR /&gt;D, D ,Some1&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;Table2:&lt;BR /&gt;load *,&lt;/P&gt;
&lt;P&gt;if(&lt;BR /&gt;Column1 = previous(Column1) and Column2 = previous(Column2) and Column3 &amp;lt;&amp;gt; previous(Column3),&lt;BR /&gt;'Conflict','NA') as Column4&lt;BR /&gt;resident Table1;&lt;/P&gt;
&lt;P&gt;drop table Table1;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 10:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1895843#M73908</guid>
      <dc:creator>vish123</dc:creator>
      <dc:date>2022-02-22T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need formula for a scenario in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1895929#M73915</link>
      <description>&lt;P&gt;Hi Vish123,&lt;/P&gt;
&lt;P&gt;Please try as below:&lt;/P&gt;
&lt;P&gt;Table1:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;Column1, Column2, Column3&lt;BR /&gt;A, A, BBC&lt;BR /&gt;A, A, BBC1&lt;BR /&gt;C, C, ABC&lt;BR /&gt;C, C, Some&lt;BR /&gt;D, D, Some1&lt;BR /&gt;D, D, Some1&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Table2:&lt;BR /&gt;Load *,&lt;BR /&gt;if(Peek(Column1)=Column1 and peek(Column2)=Column2 and peek(Column3)&amp;lt;&amp;gt;Column3,'Conflict','NA') as Column4&lt;BR /&gt;Resident Table1&lt;BR /&gt;order by Column1,Column2,Column3;&lt;/P&gt;
&lt;P&gt;Drop table Table1;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iswarya__0-1645533877406.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72808i0D97EE6AE5917D9B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iswarya__0-1645533877406.png" alt="Iswarya__0-1645533877406.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 12:44:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1895929#M73915</guid>
      <dc:creator>Iswarya_</dc:creator>
      <dc:date>2022-02-22T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need formula for a scenario in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896417#M73954</link>
      <description>&lt;P&gt;Hi Ishwarya,&lt;/P&gt;
&lt;P&gt;I have achieved above output already in Qlik Sense. But what i want is i need "conflict" in both rows where column3 values does not match and all other column values should match. I want output as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vish123_0-1645608334990.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72885i432BEA65EC6E5C36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vish123_0-1645608334990.png" alt="vish123_0-1645608334990.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As shown above highlighted should be "conflict" as well. hope you understand my requirement.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 09:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896417#M73954</guid>
      <dc:creator>vish123</dc:creator>
      <dc:date>2022-02-23T09:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Need formula for a scenario in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896424#M73955</link>
      <description>&lt;P&gt;1.Make a compined key: column1&amp;amp;'|'column2 as %Key&lt;/P&gt;
&lt;P&gt;2. in addtion to the second table where we already have the column4:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Left join(table1)
Load 
   %Key,
   column4
resident table2
where column4='Conflict';
drop table table2;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 09:39:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896424#M73955</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-02-23T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need formula for a scenario in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896552#M73982</link>
      <description>&lt;P&gt;Hi Chris,&lt;/P&gt;
&lt;P&gt;Thanks for your reply.&lt;/P&gt;
&lt;P&gt;Finally, I have achieved the desired output using below formula.&lt;/P&gt;
&lt;P&gt;Aggr(if(&lt;BR /&gt;Column1 = above(Column1) or Column1= below(Column1) &lt;BR /&gt;and&lt;BR /&gt;Column2 = above(Column2) or Column2= below(Column2)&lt;BR /&gt;and&lt;BR /&gt;Column3 &amp;lt;&amp;gt; above(Column3) and Column3&amp;lt;&amp;gt;below(Column3),&lt;BR /&gt;'Conflict','NA'),Column1, Column2, Column3)&lt;/P&gt;
&lt;P&gt;Here is the output which i want:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vish123_0-1645621129812.png" style="width: 630px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72912iA77EC2534BE2F2B6/image-dimensions/630x203?v=v2" width="630" height="203" role="button" title="vish123_0-1645621129812.png" alt="vish123_0-1645621129812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 12:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896552#M73982</guid>
      <dc:creator>vish123</dc:creator>
      <dc:date>2022-02-23T12:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need formula for a scenario in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896553#M73983</link>
      <description>&lt;P&gt;By the way last column is the output&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 13:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-formula-for-a-scenario-in-Qlik-Sense/m-p/1896553#M73983</guid>
      <dc:creator>vish123</dc:creator>
      <dc:date>2022-02-23T13:02:00Z</dc:date>
    </item>
  </channel>
</rss>

