<?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 Flag creation in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-Script/m-p/1211489#M625411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I would like to create one new flag with values Available/Over Booked.&lt;/P&gt;&lt;P&gt;Here below is my requirement .&lt;/P&gt;&lt;P&gt;If any one of project "duration" field is negative , I would like to create Flag value as "Over Booked" for whole set of Technology. If "duration" field has all positive values flag value should be "Available" for whole set of Technology.&lt;/P&gt;&lt;P&gt;Let me how can we achieve this requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 478px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Technolog&lt;/STRONG&gt;y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Project &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="92"&gt;&lt;STRONG&gt;duration&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="171"&gt;&lt;STRONG&gt;Available/Over Booked&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="87"&gt;&lt;STRONG&gt;Flag(required field)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="60" rowspan="3" style="border-top: none;"&gt;Java&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;TD class="xl65" rowspan="3" style="border-top: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="80" rowspan="4" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;X&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Over Booked&lt;/TD&gt;&lt;TD class="xl65" rowspan="4" style="border-top: none;"&gt;Over Booked&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;Y&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;Z&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Nov 2016 13:08:26 GMT</pubDate>
    <dc:creator>grajmca_sgp123</dc:creator>
    <dc:date>2016-11-07T13:08:26Z</dc:date>
    <item>
      <title>Flag creation in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-Script/m-p/1211489#M625411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;I would like to create one new flag with values Available/Over Booked.&lt;/P&gt;&lt;P&gt;Here below is my requirement .&lt;/P&gt;&lt;P&gt;If any one of project "duration" field is negative , I would like to create Flag value as "Over Booked" for whole set of Technology. If "duration" field has all positive values flag value should be "Available" for whole set of Technology.&lt;/P&gt;&lt;P&gt;Let me how can we achieve this requirement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 478px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="64"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Technolog&lt;/STRONG&gt;y&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Project &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="92"&gt;&lt;STRONG&gt;duration&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="171"&gt;&lt;STRONG&gt;Available/Over Booked&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="87"&gt;&lt;STRONG&gt;Flag(required field)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="60" rowspan="3" style="border-top: none;"&gt;Java&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;TD class="xl65" rowspan="3" style="border-top: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;B&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="80" rowspan="4" style="border-top: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;X&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-5&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Over Booked&lt;/TD&gt;&lt;TD class="xl65" rowspan="4" style="border-top: none;"&gt;Over Booked&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;Y&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;Z&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none; border-left: none;"&gt;P&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;Available&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:08:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-Script/m-p/1211489#M625411</guid>
      <dc:creator>grajmca_sgp123</dc:creator>
      <dc:date>2016-11-07T13:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-Script/m-p/1211490#M625412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t:&lt;/P&gt;&lt;P&gt;load Technology, Project, duration from YourSource&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left join (t)&lt;/P&gt;&lt;P&gt;load Technology, if(min(duration)&amp;lt;0, 'Over Booked', 'Available') as Flag&lt;/P&gt;&lt;P&gt;resident t group by Technology;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-Script/m-p/1211490#M625412</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-11-07T13:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-Script/m-p/1211491#M625413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyTable&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Technology,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Project,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; duration,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(duration &amp;gt;= 0, 'Available', 'Over Booked') as [Available/Over Booked]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...source data....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN (MyTable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Technology,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Min(duration)&amp;lt;0, 'Over Booked', 'Available') as [Flag (required field)]&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyTable&lt;/P&gt;&lt;P&gt;GROUP BY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Technology&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2016 13:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-Script/m-p/1211491#M625413</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-07T13:20:49Z</dc:date>
    </item>
  </channel>
</rss>

