<?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: Trying to use A or B on if statement, but with two different formulas in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Trying-to-use-A-or-B-on-if-statement-but-with-two-different/m-p/1681683#M51873</link>
    <description>&lt;P&gt;Did you checked the "DELAY" field in the design how it is computing?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 13:28:43 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2020-03-04T13:28:43Z</dc:date>
    <item>
      <title>Trying to use A or B on if statement, but with two different formulas</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-use-A-or-B-on-if-statement-but-with-two-different/m-p/1681646#M51867</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;My problem is this: I'm trying to calculate the delay in a process&amp;nbsp; &amp;nbsp; DELAY=today()- [date_process]&lt;/P&gt;&lt;P&gt;But I&amp;nbsp; have a dimension named "Stage", and for process in Stage=2 I will use a field named [date_process_2]&lt;/P&gt;&lt;P&gt;and for process in a Stage=3,4,5&amp;nbsp; &amp;nbsp;I will use a field named [date_process_3_4_5]&lt;/P&gt;&lt;P&gt;But I want to write something like&lt;/P&gt;&lt;P&gt;if(delay&amp;gt;0 and delay&amp;lt;7, 'less than 7 days of delay,&lt;/P&gt;&lt;P&gt;if( delay &amp;gt; 7 and delay &amp;lt; 15, 'between 7 and 15 days of delay',&lt;/P&gt;&lt;P&gt;if(delay &amp;gt;15 and delay &amp;lt; 30, 'between 15 and 30 days of delay',&lt;/P&gt;&lt;P&gt;if(delay &amp;gt; 30, '&amp;gt;30 days of delay'))))&lt;/P&gt;&lt;P&gt;The problem is in my delay field I need to perform this if statement for each "delay"&amp;nbsp;&lt;/P&gt;&lt;P&gt;=today()-if(Stage=2,date_process_2,date_process_3_4_5) )&lt;/P&gt;&lt;P&gt;If I have 10 process with delay &amp;gt;30 days in Stage=2 and 5 process with delay&amp;gt;30 days in Stage=3,4,5&lt;/P&gt;&lt;P&gt;I want to click on this filter "&amp;gt;30 days of delay"&amp;nbsp; and select all this 15 process&lt;/P&gt;&lt;P&gt;The qlik understand that the two results are excludent by themselves&lt;/P&gt;&lt;P&gt;I need to choose or Stage=2 or Stage=3,4,5&lt;/P&gt;&lt;P&gt;But I want to bring these results together&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have access to the script&amp;nbsp; load section&lt;/P&gt;&lt;P&gt;I can't create variables either master measures&lt;/P&gt;&lt;P&gt;Thks guys&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-use-A-or-B-on-if-statement-but-with-two-different/m-p/1681646#M51867</guid>
      <dc:creator>edupitel7</dc:creator>
      <dc:date>2024-11-16T19:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use A or B on if statement, but with two different formulas</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-use-A-or-B-on-if-statement-but-with-two-different/m-p/1681683#M51873</link>
      <description>&lt;P&gt;Did you checked the "DELAY" field in the design how it is computing?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-use-A-or-B-on-if-statement-but-with-two-different/m-p/1681683#M51873</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2020-03-04T13:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to use A or B on if statement, but with two different formulas</title>
      <link>https://community.qlik.com/t5/App-Development/Trying-to-use-A-or-B-on-if-statement-but-with-two-different/m-p/1681695#M51876</link>
      <description>&lt;P&gt;If I wrote without use aggr(if(xxx), Initiative Code) it FILTERS many correct values, but also some wrong values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Process with delay &amp;gt;15 for exemple appearing when i filter only &amp;lt;7 or between 7 and 15&lt;/P&gt;&lt;P&gt;I guess the problem is because if I need a different metric for formula, qlik will filter this condition and exclude the other metric results.&lt;/P&gt;&lt;P&gt;Then I need to double the code, writing "&amp;lt;7 days delay for case 2'"&amp;nbsp; "&amp;lt;7 days delays for case 3,4,5"&lt;/P&gt;&lt;P&gt;It works&lt;/P&gt;&lt;P&gt;But when I select "&amp;lt;7 days delay for case 2" it returns x projects&lt;/P&gt;&lt;P&gt;and when I select "&amp;lt;7 days delay for case 3,4,5" it returns y projects&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make both selections simultaneously and returns x+y projects&lt;/P&gt;&lt;P&gt;To find all the process with delay, in case 2 or 3,4,5&lt;/P&gt;&lt;P&gt;A U B&amp;nbsp; &amp;nbsp; &amp;nbsp;but A is mutually excluded with B&lt;/P&gt;&lt;P&gt;case 2&amp;nbsp; then not case 3,4,5&lt;/P&gt;&lt;P&gt;case 3,4,5 then not case 2&lt;/P&gt;&lt;P&gt;but with different metrics&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Trying-to-use-A-or-B-on-if-statement-but-with-two-different/m-p/1681695#M51876</guid>
      <dc:creator>edupitel7</dc:creator>
      <dc:date>2020-03-04T13:43:00Z</dc:date>
    </item>
  </channel>
</rss>

