<?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 with multiple conditions in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/if-with-multiple-conditions/m-p/1720648#M1587</link>
    <description>&lt;P&gt;hey qlikers!&lt;/P&gt;&lt;P&gt;Can we help me whit this?&lt;/P&gt;&lt;P&gt;Created the next field:&amp;nbsp;if the contract is 0 put 3,&amp;nbsp;if it's empty put 3 and if&amp;nbsp; it's different&amp;nbsp; put contract&amp;nbsp; lenght years&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (contract_length_yrs__c= 0, 3,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (Match(contract_length_yrs__c,'',' '), 3,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (IsNull(contract_length_yrs__c), 3, contract_length_yrs__c))) as contract_length_yrs__c&lt;/P&gt;&lt;P&gt;now I need to create a field that&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Outcome='Lost', RFP_est,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(match (Outcome,'No Bid'),RFP_est,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(match(Outcome,'RFP Withdrawn by Customer'), RFP_est) ) )&lt;/P&gt;&lt;P&gt;Where RFP_est=&amp;nbsp; date(AddMonths((AddYears("createdate",contract_length_yrs__c)),-6,0),'MM/DD/YYYY') as RFP_est&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but for some reason when the contract_length_yrs__c is "empty "&amp;nbsp;it doesn't give me "3" and can't calculate&amp;nbsp; "the RFP_est"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't know what I'm doing wrong&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2025 15:56:15 GMT</pubDate>
    <dc:creator>adiaz25</dc:creator>
    <dc:date>2025-03-20T15:56:15Z</dc:date>
    <item>
      <title>if with multiple conditions</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/if-with-multiple-conditions/m-p/1720648#M1587</link>
      <description>&lt;P&gt;hey qlikers!&lt;/P&gt;&lt;P&gt;Can we help me whit this?&lt;/P&gt;&lt;P&gt;Created the next field:&amp;nbsp;if the contract is 0 put 3,&amp;nbsp;if it's empty put 3 and if&amp;nbsp; it's different&amp;nbsp; put contract&amp;nbsp; lenght years&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (contract_length_yrs__c= 0, 3,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (Match(contract_length_yrs__c,'',' '), 3,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (IsNull(contract_length_yrs__c), 3, contract_length_yrs__c))) as contract_length_yrs__c&lt;/P&gt;&lt;P&gt;now I need to create a field that&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(Outcome='Lost', RFP_est,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if(match (Outcome,'No Bid'),RFP_est,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(match(Outcome,'RFP Withdrawn by Customer'), RFP_est) ) )&lt;/P&gt;&lt;P&gt;Where RFP_est=&amp;nbsp; date(AddMonths((AddYears("createdate",contract_length_yrs__c)),-6,0),'MM/DD/YYYY') as RFP_est&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but for some reason when the contract_length_yrs__c is "empty "&amp;nbsp;it doesn't give me "3" and can't calculate&amp;nbsp; "the RFP_est"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't know what I'm doing wrong&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 15:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/if-with-multiple-conditions/m-p/1720648#M1587</guid>
      <dc:creator>adiaz25</dc:creator>
      <dc:date>2025-03-20T15:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/if-with-multiple-conditions/m-p/1720654#M1588</link>
      <description>&lt;P&gt;You can not refer to a created field within the same load statement. Your reference to [contract_length_yrs__c] is the original field value not the value created with your if statement.&lt;/P&gt;&lt;P&gt;You can avoid this problem by using a &lt;A href="https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/load-data-from-previously-loaded-table.htm" target="_self"&gt;preceding load&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;if(Outcome='Lost', RFP_est,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if(match (Outcome,'No Bid'),RFP_est,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(match(Outcome,'RFP Withdrawn by Customer'), RFP_est) ) ) as FIELDNAME,&lt;/P&gt;&lt;P&gt;*;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (contract_length_yrs__c= 0, 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if (Match(contract_length_yrs__c,'',' '), 3,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (IsNull(contract_length_yrs__c), 3, contract_length_yrs__c))) as contract_length_yrs__c&lt;/P&gt;&lt;P&gt;FROM Source;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 18:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/if-with-multiple-conditions/m-p/1720654#M1588</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-06-21T18:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: if with multiple conditions</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/if-with-multiple-conditions/m-p/1720991#M1589</link>
      <description>&lt;P&gt;Hi Vegar,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/25001"&gt;@Vegar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just create the&amp;nbsp;&lt;SPAN&gt;contract_length_yrs__c&lt;/SPAN&gt; field from load editor and the others (RFP_est and NEXT_rfp)&amp;nbsp;&amp;nbsp; as measures in master items&lt;/P&gt;&lt;P&gt;regards!!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 20:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/if-with-multiple-conditions/m-p/1720991#M1589</guid>
      <dc:creator>adiaz25</dc:creator>
      <dc:date>2020-06-22T20:47:21Z</dc:date>
    </item>
  </channel>
</rss>

