<?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 merge 2 flag condition in same expression. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-merge-2-flag-condition-in-same-expression/m-p/104488#M759855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Trishita!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data of your dashboard are scrumbled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Aug 2018 11:23:48 GMT</pubDate>
    <dc:creator>Sergey_Shuklin</dc:creator>
    <dc:date>2018-08-21T11:23:48Z</dc:date>
    <item>
      <title>How to merge 2 flag condition in same expression.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-2-flag-condition-in-same-expression/m-p/104487#M759854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently I have a following syntax for the following image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211381_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(&lt;STRONG&gt;Flag1&lt;/STRONG&gt;=1,if (Match([Actual_Fuel_Type],'HSFO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSFO'}&amp;gt;} If([SOUNDING_START_DATE] &amp;gt;= [SURVEY_DATE] and [SOUNDING_START_DATE] &amp;lt; [SURVEY_DATE] + 7, FUEL_MASS_BEFORE_SOUNDING)/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'LSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'LSDO'}&amp;gt;}If([SOUNDING_START_DATE] &amp;gt;= [SURVEY_DATE] and [SOUNDING_START_DATE] &amp;lt; [SURVEY_DATE] + 7, FUEL_MASS_BEFORE_SOUNDING)/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'HSDO'), sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'HSDO'}&amp;gt;}If([SOUNDING_START_DATE] &amp;gt;= [SURVEY_DATE] and [SOUNDING_START_DATE] &amp;lt; [SURVEY_DATE] + 7, FUEL_MASS_BEFORE_SOUNDING)/ 1000),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Match([Actual_Fuel_Type],'ULSFO'),sum( total&amp;nbsp; {$&amp;lt;Actual_Fuel_Type={'ULSFO'}&amp;gt;}If([SOUNDING_START_DATE] &amp;gt;= [SURVEY_DATE] and [SOUNDING_START_DATE] &amp;lt; [SURVEY_DATE] + 7, FUEL_MASS_BEFORE_SOUNDING)/ 1000),'Unknown'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;)))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;Flag=1&lt;/STRONG&gt; is given by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([SOUNDING_START_DATE] &amp;gt;= [SURVEY_DATE] and [SOUNDING_START_DATE] &amp;lt; [SURVEY_DATE] + 7, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For survey id 23377 flag 0&lt;/P&gt;&lt;P&gt;I also want to show a new condition that whenever the flag is 0,it will also calculate the sum of &lt;STRONG&gt;FUEL_MASS_BEFORE_SOUNDING g&lt;/STRONG&gt;rouped by Actual_Fuel_Type. And also show the difference between [SOUNDING_START_DATE]- [SURVEY_DATE] if its more than 7 days.Because the report shows no value for flag=0 case&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/211388_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to show it in the same table.All values of flag=1 and flag=0 so that whenerver flag1 is true it calculates the &lt;STRONG&gt;computed rob&lt;/STRONG&gt; and &lt;STRONG&gt;actual rob&lt;/STRONG&gt; fields and when flag=0 then they also fetch the values and also show a difference in number of days between the survey date and sounding date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached my qvd in this regard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-2-flag-condition-in-same-expression/m-p/104487#M759854</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge 2 flag condition in same expression.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-2-flag-condition-in-same-expression/m-p/104488#M759855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Trishita!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data of your dashboard are scrumbled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 11:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-2-flag-condition-in-same-expression/m-p/104488#M759855</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2018-08-21T11:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge 2 flag condition in same expression.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-2-flag-condition-in-same-expression/m-p/104489#M759856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not understand what you meant..but if flag is 0 for a specific survey id example 23377&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/211389_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;And if flag is 1 for any survey id then 23373&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/211390_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;My target is to have a report where all values will be displayed if the data is between the specific date range it will show them as computed if not within the date range then also they will show up the data and also a new column which will show that difference between survey date and sounding date if its more than 7 &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2018 11:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-2-flag-condition-in-same-expression/m-p/104489#M759856</guid>
      <dc:creator>trishita</dc:creator>
      <dc:date>2018-08-21T11:42:10Z</dc:date>
    </item>
  </channel>
</rss>

