<?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 Create new flag using existing Flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611445#M735489</link>
    <description>&lt;P&gt;How to create additional flag sum of two flags (Flag1 + New)&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;IF(MonthDiff &amp;gt;= 1 AND MonthDiff &amp;lt;= 36, 'Flag1',&lt;BR /&gt;IF(MonthDiff &amp;gt;=37 AND MonthDiff &amp;lt;= 60, 'Flag2','New'))) AS DateFlag&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Add one more Flag (Flag1 +'New' = Flag3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>karan_kn</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Create new flag using existing Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611445#M735489</link>
      <description>&lt;P&gt;How to create additional flag sum of two flags (Flag1 + New)&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;IF(MonthDiff &amp;gt;= 1 AND MonthDiff &amp;lt;= 36, 'Flag1',&lt;BR /&gt;IF(MonthDiff &amp;gt;=37 AND MonthDiff &amp;lt;= 60, 'Flag2','New'))) AS DateFlag&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Add one more Flag (Flag1 +'New' = Flag3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611445#M735489</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create new flag using existing Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611456#M735490</link>
      <description>&lt;P&gt;&lt;SPAN&gt;=IF(MonthDiff &amp;lt;37 AND MonthDiff &amp;gt; 61), 'Flag3') as Flag&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 08:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611456#M735490</guid>
      <dc:creator>Claudiu_Anghelescu</dc:creator>
      <dc:date>2019-08-12T08:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create new flag using existing Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611465#M735491</link>
      <description>&lt;P&gt;Use Preceeding Load , like below:&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Flag1 +New as Flag3&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;IF(MonthDiff &amp;gt;= 1 AND MonthDiff &amp;lt;= 36, 'Flag1',&lt;BR /&gt;IF(MonthDiff &amp;gt;=37 AND MonthDiff &amp;lt;= 60, 'Flag2','New'))) AS DateFlag&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;lt;.....&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;or Resident Load like:&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;IF(MonthDiff &amp;gt;= 1 AND MonthDiff &amp;lt;= 36, 'Flag1',&lt;BR /&gt;IF(MonthDiff &amp;gt;=37 AND MonthDiff &amp;lt;= 60, 'Flag2','New'))) AS DateFlag&lt;/P&gt;&lt;P&gt;From &amp;lt;&amp;lt;.....&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Load *,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flag1 +New as Flag3&lt;/P&gt;&lt;P&gt;resident Temp;&lt;/P&gt;&lt;P&gt;Drop table Temp;&lt;/P&gt;&lt;P&gt;Hope Flag1 and New are Numerical Entries&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 08:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611465#M735491</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-08-12T08:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create new flag using existing Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611482#M735492</link>
      <description>&lt;P&gt;Thanks for the response, but the flag getting blank. It's not accepting to merge two values.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 10:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611482#M735492</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2019-08-12T10:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create new flag using existing Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611488#M735493</link>
      <description>&lt;P&gt;can u share the sample file&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 10:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611488#M735493</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2019-08-12T10:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create new flag using existing Flag</title>
      <link>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611495#M735494</link>
      <description>&lt;P&gt;&lt;STRONG&gt;create new flag&amp;nbsp; Flag3 + New =Flag4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;T1:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;IF(MonthDiff &amp;gt;= 1 AND MonthDiff &amp;lt;= 12, 'Flag1',&lt;/P&gt;&lt;P&gt;IF(MonthDiff &amp;gt;=13 AND MonthDiff &amp;lt;= 36, 'Flag2',&lt;/P&gt;&lt;P&gt;IF(MonthDiff &amp;gt;=37 AND MonthDiff &amp;lt;= 60, 'Flag3','New'))) AS DateFlag&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;IF(ISNULL(Max_Sales_Date) = -1, 'Null', ((year(Sales_Date)*12)+month(Sales_Date)) - (((year(Max_Sales_Date)*12)+ month(Max_Sales_Date)))) AS MonthDiff&lt;/P&gt;&lt;P&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 10:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-new-flag-using-existing-Flag/m-p/1611495#M735494</guid>
      <dc:creator>karan_kn</dc:creator>
      <dc:date>2019-08-12T10:53:23Z</dc:date>
    </item>
  </channel>
</rss>

