<?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 help in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Flag-creation-help/m-p/130607#M28757</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;&lt;/P&gt;&lt;P&gt;Can any one please help me on below requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables Table 1 contains TYPE field and&amp;nbsp; Table 2 contains Comment field. These two tables are linked in on Key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI based on these two fields I have to&amp;nbsp; create a flag based on below conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;Comment&lt;/STRONG&gt; field =&lt;STRONG&gt;Yes*&lt;/STRONG&gt; then its &lt;STRONG&gt;'Yes'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if &lt;STRONG&gt;TYPE&lt;/STRONG&gt; field = &lt;STRONG&gt;TERMINAL&lt;/STRONG&gt; then its &lt;STRONG&gt;'Yes'&lt;/STRONG&gt; Flag else &lt;STRONG&gt;No&lt;/STRONG&gt; Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried like below&lt;/P&gt;&lt;P&gt;if (Match(&lt;STRONG&gt;TYPE&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; ,'&lt;STRONG&gt;TERMINAL'&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;) or wildmatch(&lt;STRONG&gt;Comment&lt;/STRONG&gt;,'&lt;STRONG&gt;Yes*&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; &lt;/SPAN&gt;'),'Yes','No')&amp;nbsp; as Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here when I have clicked on Yes only TYPE= TERMINAL is selected the second condition &lt;STRONG&gt;Comment&lt;/STRONG&gt;=&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="background-position: repeat; color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: bold; text-align: left; text-indent: 0px;"&gt;&lt;STRONG&gt;Yes*records are not &lt;/STRONG&gt;&lt;/SPAN&gt;selected. Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2018 08:08:33 GMT</pubDate>
    <dc:creator>mahitham</dc:creator>
    <dc:date>2018-08-29T08:08:33Z</dc:date>
    <item>
      <title>Flag creation help</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Flag-creation-help/m-p/130607#M28757</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;&lt;/P&gt;&lt;P&gt;Can any one please help me on below requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables Table 1 contains TYPE field and&amp;nbsp; Table 2 contains Comment field. These two tables are linked in on Key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the UI based on these two fields I have to&amp;nbsp; create a flag based on below conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;Comment&lt;/STRONG&gt; field =&lt;STRONG&gt;Yes*&lt;/STRONG&gt; then its &lt;STRONG&gt;'Yes'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if &lt;STRONG&gt;TYPE&lt;/STRONG&gt; field = &lt;STRONG&gt;TERMINAL&lt;/STRONG&gt; then its &lt;STRONG&gt;'Yes'&lt;/STRONG&gt; Flag else &lt;STRONG&gt;No&lt;/STRONG&gt; Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried like below&lt;/P&gt;&lt;P&gt;if (Match(&lt;STRONG&gt;TYPE&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; ,'&lt;STRONG&gt;TERMINAL'&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;) or wildmatch(&lt;STRONG&gt;Comment&lt;/STRONG&gt;,'&lt;STRONG&gt;Yes*&lt;/STRONG&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt; &lt;/SPAN&gt;'),'Yes','No')&amp;nbsp; as Flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here when I have clicked on Yes only TYPE= TERMINAL is selected the second condition &lt;STRONG&gt;Comment&lt;/STRONG&gt;=&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="background-position: repeat; color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: bold; text-align: left; text-indent: 0px;"&gt;&lt;STRONG&gt;Yes*records are not &lt;/STRONG&gt;&lt;/SPAN&gt;selected. Please help me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Flag-creation-help/m-p/130607#M28757</guid>
      <dc:creator>mahitham</dc:creator>
      <dc:date>2018-08-29T08:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation help</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Flag-creation-help/m-p/130608#M28758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;are you using this if condition in app or in script (just asking because of "as Flag" but generaly doesnt matter)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think your expression works well. As you have it, it should work as following. 'Yes' will be displayed by all rows with Type='Terminal' and also by all rows with Comment=Yes*. Which implies that allso rows with different comments could be selected if type=terminal and vice versa. Se attached app for demonstration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can allso atteched your app with sample to check if it is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 08:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Flag-creation-help/m-p/130608#M28758</guid>
      <dc:creator>DavidŠtorek</dc:creator>
      <dc:date>2018-08-29T08:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation help</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Flag-creation-help/m-p/130609#M28759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to create these condition in script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2018 09:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Flag-creation-help/m-p/130609#M28759</guid>
      <dc:creator>shraddha_g</dc:creator>
      <dc:date>2018-08-29T09:02:37Z</dc:date>
    </item>
  </channel>
</rss>

