<?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 create a flag to show specific values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657343#M729996</link>
    <description>&lt;P&gt;Thanks, the 10001 and 10002 are just sample value. i cannot hardcode it in real scenario, as there are 10000 over IDs...&lt;/P&gt;&lt;P&gt;anyway to script it, dynamically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 23:16:29 GMT</pubDate>
    <dc:creator>jim_chan</dc:creator>
    <dc:date>2019-12-12T23:16:29Z</dc:date>
    <item>
      <title>How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657126#M729993</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question here. Please have a&amp;nbsp; look on my screenshot and i have also attached a test.qvw. and hopefully u guys can help me.&lt;/P&gt;&lt;P&gt;1) I have 2 tables - one called ABC, the other one called NON-ABC.&lt;/P&gt;&lt;P&gt;2) I need to create a flag that when i select ABC in the flag, it will show me ALL IDs. then when i select NON-ABC, it will show me 10001 and 10002.&amp;nbsp;&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/How-to-create-a-flag-to-show-specific-values/m-p/1657126#M729993</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657127#M729994</link>
      <description>&lt;P&gt;hi. the screenshot!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 14:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657127#M729994</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2019-12-12T14:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657255#M729995</link>
      <description>&lt;P&gt;Hi Jim_Chan,&lt;/P&gt;&lt;P&gt;this is very simple.&lt;/P&gt;&lt;P&gt;in script you load a data island 'Flag_ABC':&lt;/P&gt;&lt;P&gt;T1:LOAD * INLINE [&lt;BR /&gt;Flag_ABC&lt;BR /&gt;ABC&lt;BR /&gt;NON-ABC&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;T2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ABC_ID, PRODUCT&lt;BR /&gt;10001, qwerty&lt;BR /&gt;10002, asdfg&lt;BR /&gt;10003, zxcvb&lt;BR /&gt;10004, yuiop&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;T3:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;CDE_ID, PRODUCT_QA, SCORE&lt;BR /&gt;10001, qwerty, 100&lt;BR /&gt;10002, asdfg, 200&lt;BR /&gt;10006, zxcvb, 300&lt;BR /&gt;10005, yuiop, 400&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;In your front end you create a list box 'Flag_ABC'&amp;nbsp; and mark 'Always one selected Value'.&lt;/P&gt;&lt;P&gt;Then create a text box with this expression:&lt;/P&gt;&lt;P&gt;=If(Flag_ABC = 'ABC', Concat(DISTINCT ABC_ID, chr(10)), Concat({1&amp;lt;CDE_ID = {10001, 10002}&amp;gt;}CDE_ID, chr(10)))&lt;/P&gt;&lt;P&gt;See the picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FlagABC.jpg" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25453i12D3231D7147CAC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlagABC.jpg" alt="FlagABC.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 17:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657255#M729995</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2019-12-12T17:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657343#M729996</link>
      <description>&lt;P&gt;Thanks, the 10001 and 10002 are just sample value. i cannot hardcode it in real scenario, as there are 10000 over IDs...&lt;/P&gt;&lt;P&gt;anyway to script it, dynamically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 23:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657343#M729996</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2019-12-12T23:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657571#M729997</link>
      <description>&lt;P&gt;Hi Jim Chan,&lt;/P&gt;&lt;P&gt;please tell me why 10001 and 10002 is your result in the above example.&lt;/P&gt;&lt;P&gt;If I would know the reason, I could tell you the way to make it&amp;nbsp; dynamic.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 13:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657571#M729997</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2019-12-13T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657630#M729998</link>
      <description>&lt;P&gt;10001 and 10002 it's just an example.&amp;nbsp; The 2 tables that I am having now, there are 10k over same ID.&amp;nbsp; Those same ID has to be flagged out. 1 of the business requirement is to flag out if same ID happen to be in the 2 tables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 15:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657630#M729998</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2019-12-13T15:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657925#M729999</link>
      <description>&lt;P&gt;Hi Jim_Chan,&lt;/P&gt;&lt;P&gt;in order to make your selection dynamic you have to add this to your script:&lt;/P&gt;&lt;P&gt;T1:LOAD * INLINE [&lt;BR /&gt;Flag_ABC&lt;BR /&gt;ABC&lt;BR /&gt;NON-ABC&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;T2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ABC_ID, PRODUCT&lt;BR /&gt;10001, qwerty&lt;BR /&gt;10002, asdfg&lt;BR /&gt;10003, zxcvb&lt;BR /&gt;10004, yuiop&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;T3:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;CDE_ID, PRODUCT_QA, SCORE&lt;BR /&gt;10001, qwerty, 100&lt;BR /&gt;10002, asdfg, 200&lt;BR /&gt;10006, zxcvb, 300&lt;BR /&gt;10005, yuiop, 400&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;T4:&lt;BR /&gt;LOAD ABC_ID as CDE_ID&lt;BR /&gt;Resident T2;&lt;BR /&gt;LOAD CDE_ID&lt;BR /&gt;Resident T3;&lt;/P&gt;&lt;P&gt;T5:&lt;BR /&gt;LOAD CDE_ID,&lt;BR /&gt;1 as Count&lt;BR /&gt;Resident T4;&lt;/P&gt;&lt;P&gt;DROP Table T4;&lt;/P&gt;&lt;P&gt;Left Join(T3)&lt;BR /&gt;LOAD CDE_ID,&lt;BR /&gt;If(Sum(Count) &amp;gt; 1, 1, 0) as NON_ABC&lt;BR /&gt;Resident T5&lt;BR /&gt;Group By CDE_ID;&lt;/P&gt;&lt;P&gt;DROP Table T5;&lt;/P&gt;&lt;P&gt;In the front end it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FlagABC.jpg" style="width: 995px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25571iFDEE7CE7239506F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="FlagABC.jpg" alt="FlagABC.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this is ok for you.&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 09:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1657925#M729999</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2019-12-16T09:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1659170#M730000</link>
      <description>&lt;P&gt;Jim, did Burkhard's last post get you a working solution?&amp;nbsp; If so, be sure you return to the post and use the Accept as Solution button on that post from him to give him credit for the assistance and to let other Community Members know that worked for this use case.&amp;nbsp; If you are still working on things, leave an update with what you still need.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 20:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1659170#M730000</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-18T20:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a flag to show specific values</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1659185#M730001</link>
      <description>&lt;P&gt;Try this -&amp;nbsp;&lt;/P&gt;&lt;P&gt;ABC:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ABC_ID, PRODUCT&lt;BR /&gt;10001, qwerty&lt;BR /&gt;10002, asdfg&lt;BR /&gt;10003, zxcvb&lt;BR /&gt;10004, yuiop&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NON_ABC:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;CDE_ID, PRODUCT_QA, SCORE&lt;BR /&gt;10001, qwerty, 100&lt;BR /&gt;10002, asdfg, 200&lt;BR /&gt;10006, zxcvb, 300&lt;BR /&gt;10005, yuiop, 400&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Left Join(NON_ABC)&lt;BR /&gt;LOAD CDE_ID, 1 as CommonIDFlag Resident NON_ABC where Exists(ABC_ID, CDE_ID)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2019 20:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-a-flag-to-show-specific-values/m-p/1659185#M730001</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2019-12-18T20:51:01Z</dc:date>
    </item>
  </channel>
</rss>

