<?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 flag column values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686741#M672055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a only field having all the Flags or create individual Flag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best method is, use the Apply Map to create Single flag field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG_MAP:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;COND, FLAG&lt;/P&gt;&lt;P&gt;1-2-3-PC, Sales Amount&lt;/P&gt;&lt;P&gt;1-2-4-PM, Insurance Amount&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, ApplyMap('FLAG_MAP', A&amp;amp;'-'&amp;amp;B&amp;amp;'-'&amp;amp;C&amp;amp;'-'&amp;amp;Code , 'Others') AS Amount_Type&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A, B, C, Code, Amount&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 2, 3, PC, 900&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 3, 4, PM,&amp;nbsp; 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 2, 4, TM, 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 2, 6, PC, 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 3, 4, PM, 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 13:49:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-12T13:49:58Z</dc:date>
    <item>
      <title>How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686736#M672050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set like this&lt;/P&gt;&lt;P&gt;A B C Code Amount&lt;/P&gt;&lt;P&gt;1 2 3&amp;nbsp; PC 900&lt;/P&gt;&lt;P&gt;1 3 4&amp;nbsp; PM&amp;nbsp; 800&lt;/P&gt;&lt;P&gt;1 2 4&amp;nbsp;&amp;nbsp; TM 800&lt;/P&gt;&lt;P&gt;1 2 6&amp;nbsp; PC 800&lt;/P&gt;&lt;P&gt;1 3 4 PM 800&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have decide the Amount column as sales amount, Insurance amount&amp;nbsp; and Commisions Amount based on the combinations of A B C and PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if A =1 B=2 C=3 and Code =PC then the Amount should be flagged as Sales amount.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if A=1 B=3&amp;nbsp; C=4 and Code=PM then the Amount should be flageed as Insurance amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686736#M672050</guid>
      <dc:creator />
      <dc:date>2014-09-12T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686737#M672051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(A=1 and B=2 and C=3 and Code = 'PC', 'SalesAmount',&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(A=1 and B=3 and C=4 and Code = 'PM', 'InsuranceAmount')) as Flag&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; A, B, C, Code, Amount&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, 2, 3, PC, 900&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, 3, 4, PM,&amp;nbsp; 800&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, 2, 4, TM, 800&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, 2, 6, PC, 800&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1, 3, 4, PM, 800&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686737#M672051</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-12T13:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686738#M672052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(A = 1 and B = 2 and C = 3 and Code = 'pc', '1', '0') AS [Sales Flag amount]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686738#M672052</guid>
      <dc:creator>narband2778</dc:creator>
      <dc:date>2014-09-12T13:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686739#M672053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;But I have lot of combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I use a key for combinations and flag them????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686739#M672053</guid>
      <dc:creator />
      <dc:date>2014-09-12T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686740#M672054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Left join the 3 concatenated field A&amp;amp;B&amp;amp;C as Something to a table with combinations you created. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686740#M672054</guid>
      <dc:creator />
      <dc:date>2014-09-12T13:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686741#M672055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a only field having all the Flags or create individual Flag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best method is, use the Apply Map to create Single flag field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAG_MAP:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;COND, FLAG&lt;/P&gt;&lt;P&gt;1-2-3-PC, Sales Amount&lt;/P&gt;&lt;P&gt;1-2-4-PM, Insurance Amount&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, ApplyMap('FLAG_MAP', A&amp;amp;'-'&amp;amp;B&amp;amp;'-'&amp;amp;C&amp;amp;'-'&amp;amp;Code , 'Others') AS Amount_Type&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; A, B, C, Code, Amount&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 2, 3, PC, 900&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 3, 4, PM,&amp;nbsp; 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 2, 4, TM, 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 2, 6, PC, 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; 1, 3, 4, PM, 800&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686741#M672055</guid>
      <dc:creator />
      <dc:date>2014-09-12T13:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686742#M672056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting blank for Amount Type in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain the 'Others' in ApplyMapt fucntion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686742#M672056</guid>
      <dc:creator />
      <dc:date>2014-09-12T14:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686743#M672057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting blank for Amount Type in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please explain the 'Others' in ApplyMapt fucntion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686743#M672057</guid>
      <dc:creator />
      <dc:date>2014-09-12T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686744#M672058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The reason you get blanks is because you have to use a "mapping load". &lt;/P&gt;&lt;P&gt;So change&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FLAG_MAP:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * INLINE [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FLAG_MAP:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MAPPING LOAD * INLINE [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The 'Others' will display if no value is found in de mapping table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686744#M672058</guid>
      <dc:creator>geert_gelade</dc:creator>
      <dc:date>2014-09-12T14:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686745#M672059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just wondering what was wrong with my answer ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686745#M672059</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-09-12T14:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to flag column values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686746#M672060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Apply Map gave me easiest way to solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-flag-column-values/m-p/686746#M672060</guid>
      <dc:creator />
      <dc:date>2014-09-12T14:34:16Z</dc:date>
    </item>
  </channel>
</rss>

