<?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: How to convert excel formula to QLIK in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972359#M80220</link>
    <description>&lt;P&gt;You want to calculate this in 'script level' or 'frontend'? In this formula fields [Parent] and [State] should represent your equivalent fields (as in excel) and if they named differently, formula should be adjusted accordingly.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Aug 2022 08:21:19 GMT</pubDate>
    <dc:creator>justISO</dc:creator>
    <dc:date>2022-08-24T08:21:19Z</dc:date>
    <item>
      <title>How to convert excel formula to QLIK</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972313#M80214</link>
      <description>&lt;P&gt;Hello Everyone,&lt;BR /&gt;Good Day!!!&lt;BR /&gt;&lt;BR /&gt;PFA Excel,&lt;BR /&gt;I want to convert below excel formula in qlik.&lt;BR /&gt;&lt;BR /&gt;Formula( Column B in Excel )&amp;nbsp; :&amp;nbsp;&lt;BR /&gt;IF(AND(C2&amp;lt;&amp;gt;C1,F2="Assigned"),1,IF(AND(C2=C1,F2&amp;lt;&amp;gt;F1,F2="Assigned"),1,IF(AND(C2=C1,F2=F1,F2="Assigned"),2,"")))&lt;BR /&gt;&lt;BR /&gt;Thanks in advance:)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 07:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972313#M80214</guid>
      <dc:creator>gp_123</dc:creator>
      <dc:date>2022-08-24T07:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel formula to QLIK</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972333#M80217</link>
      <description>&lt;P&gt;Hi, it looks something like this, if it will be used in report level:&lt;/P&gt;
&lt;P&gt;=if([Parent]&amp;lt;&amp;gt;above([Parent]) and [State]='Assigned', 1,&lt;BR /&gt;if([Parent]=above([Parent]) and [State]&amp;lt;&amp;gt;above([State]) and [State]='Assigned', 1,&lt;BR /&gt;if([Parent]=above([Parent]) and [State]=above([State]) and [State]='Assigned', 2, '')))&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 07:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972333#M80217</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-08-24T07:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel formula to QLIK</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972356#M80219</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155226"&gt;@justISO&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;Is it possible to you to share sample app because the above formula is not working on script level and on frontend it is not showing any error but "Invalid Dimension" is coming.&amp;nbsp;&lt;BR /&gt;Once again thanks:)&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 08:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972356#M80219</guid>
      <dc:creator>gp_123</dc:creator>
      <dc:date>2022-08-24T08:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel formula to QLIK</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972359#M80220</link>
      <description>&lt;P&gt;You want to calculate this in 'script level' or 'frontend'? In this formula fields [Parent] and [State] should represent your equivalent fields (as in excel) and if they named differently, formula should be adjusted accordingly.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 08:21:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972359#M80220</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-08-24T08:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel formula to QLIK</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972361#M80221</link>
      <description>&lt;P&gt;On script level is it possible?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 08:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972361#M80221</guid>
      <dc:creator>gp_123</dc:creator>
      <dc:date>2022-08-24T08:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel formula to QLIK</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972366#M80222</link>
      <description>&lt;P&gt;Yes. So I took some data from your excel as sample and loaded simple table with columns 'Parent', 'Number', 'Created' and 'State' (table 'temp'). Then I load everything again into table 'main', but now I make this 'Check' column according your formula. Notice, that in script level above() function is changed to previous():&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;temp:
load * inline [
Parent,	Number,	Created,	State,
CPM0001009,	CPT0001001,	2019-10-14 6:45,	Closed complete,
CPM0001138,	CPT0001002,	2019-10-14 11:47,	Closed complete,
CPM0001138,	CPT0001003,	2019-10-14 11:48,	Closed complete,
CPM0001138,	CPT0001004,	2019-10-14 11:50,	Assigned,
CPM0001138,	CPT0001005,	2019-10-14 11:51,	Closed complete,
CPM0001140,	CPT0001006,	2019-10-14 12:06,	Closed complete,
CPM0001140,	CPT0001007,	2019-10-14 12:07,	Closed complete,
];


NoConcatenate
main:
load 
*,
if([Parent]&amp;lt;&amp;gt;previous([Parent]) and [State]='Assigned', 1,
if([Parent]=previous([Parent]) and [State]&amp;lt;&amp;gt;previous([State]) and [State]='Assigned', 1,
if([Parent]=previous([Parent]) and [State]=previous([State]) and [State]='Assigned', 2, ''))) as Check
resident temp;

drop table temp;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="justISO_0-1661329865507.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/87398i19C02EA7B2A39E43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="justISO_0-1661329865507.png" alt="justISO_0-1661329865507.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 08:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972366#M80222</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-08-24T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert excel formula to QLIK</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972369#M80223</link>
      <description>&lt;P&gt;Thank You so much. It's working.&lt;span class="lia-unicode-emoji" title=":hugging_face:"&gt;🤗&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 08:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-convert-excel-formula-to-QLIK/m-p/1972369#M80223</guid>
      <dc:creator>gp_123</dc:creator>
      <dc:date>2022-08-24T08:36:15Z</dc:date>
    </item>
  </channel>
</rss>

