<?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 If condition in edit script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-condition-in-edit-script/m-p/1733043#M721183</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to write this IF condition in edit script .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Alt(num(1.25*(count({&amp;lt;Status={'Good'},Activestatus={'Active'},Renewalstatus={'Yes'},&lt;BR /&gt;Type={'Renewal'},Stage={'Propose'},[EOD Quarter]=&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;count({&amp;lt;Renewals=,Activestatus={'Active'},Renewalstatus={'Yes'},Type={'Renewal'},Stage={'Propose'},[EOD Quarter]=&amp;gt;}[ID])),'#.##'),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deep.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:11:56 GMT</pubDate>
    <dc:creator>deepakkrish</dc:creator>
    <dc:date>2024-11-16T00:11:56Z</dc:date>
    <item>
      <title>If condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-edit-script/m-p/1733043#M721183</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to write this IF condition in edit script .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Alt(num(1.25*(count({&amp;lt;Status={'Good'},Activestatus={'Active'},Renewalstatus={'Yes'},&lt;BR /&gt;Type={'Renewal'},Stage={'Propose'},[EOD Quarter]=&amp;gt;}ID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;count({&amp;lt;Renewals=,Activestatus={'Active'},Renewalstatus={'Yes'},Type={'Renewal'},Stage={'Propose'},[EOD Quarter]=&amp;gt;}[ID])),'#.##'),0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deep.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:11:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-edit-script/m-p/1733043#M721183</guid>
      <dc:creator>deepakkrish</dc:creator>
      <dc:date>2024-11-16T00:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: If condition in edit script</title>
      <link>https://community.qlik.com/t5/QlikView/If-condition-in-edit-script/m-p/1733063#M721184</link>
      <description>&lt;P&gt;You won't be able to write entire condition in script as it involves exclusion of some filter which is only front end feature. But you can create the Flags in script and use it to simplify the expression.&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if( Status='Good' and Activestatus='Active' and Renewalstatus='Yes' and&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Type='Renewal' and Stage='Propose', 1,0) as &lt;STRONG&gt;Numerator&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(Activestatus='Active' and Renewalstatus='Yes' and&amp;nbsp;&lt;BR /&gt;Type='Renewal' and Stage='Propose',1,0) as &lt;STRONG&gt;Denominator&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FROM Source&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now you can use below formula on front end&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=num(1.25*(Sum({&amp;lt;[EOD Quarter]&amp;gt;}&lt;STRONG&gt;Numerator&lt;/STRONG&gt;)) / sum({&amp;lt;Renewals,[EOD Quarter]&amp;gt;}&lt;STRONG&gt;Denominator&lt;/STRONG&gt;)&amp;nbsp;,'#.##')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 11:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-condition-in-edit-script/m-p/1733063#M721184</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-04T11:29:00Z</dc:date>
    </item>
  </channel>
</rss>

