<?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: IF AND in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745104#M719716</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2448"&gt;@stekol61&lt;/a&gt;... try below. there was a typo&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(Concat(Technology, '|') = '1G|2G', red(), green())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2020 14:03:53 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-09-18T14:03:53Z</dc:date>
    <item>
      <title>IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745064#M719713</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a QV app with a Text field.&lt;/P&gt;&lt;P&gt;I want to change the font color based on a filter.&lt;/P&gt;&lt;P&gt;If i select the filter 'Technology' as '1' or '2' or '3' the color should be green.&lt;/P&gt;&lt;P&gt;If i select '1' AND '2' it should be red&lt;/P&gt;&lt;P&gt;I used this expression bet it doesn't work&amp;nbsp; (shows green no matter what filter value I use)&lt;/P&gt;&lt;P&gt;=If (Technology='1' and Technology='2' , v_rgb_red, v_rgb_green)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745064#M719713</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745077#M719714</link>
      <description>&lt;P&gt;Try this instead&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(Concat(Technology, '|'), = '1|2', v_rgb_red, v_rgb_green)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Sep 2020 13:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745077#M719714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-18T13:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745093#M719715</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I get 'Error in expression'&lt;/P&gt;&lt;P&gt;I wrote '1' and '2' but it should be '1G'&amp;nbsp; and '2G'. Don't know if it matters.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 13:52:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745093#M719715</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-09-18T13:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745104#M719716</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2448"&gt;@stekol61&lt;/a&gt;... try below. there was a typo&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=If(Concat(Technology, '|') = '1G|2G', red(), green())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745104#M719716</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-18T14:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745110#M719717</link>
      <description>&lt;P&gt;No error but the color is always green, no matter if I select 1G or 2G or both&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745110#M719717</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-09-18T14:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745125#M719718</link>
      <description>&lt;P&gt;Would you be able to share an image to show what you are seeing?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745125#M719718</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-18T14:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745129#M719719</link>
      <description>&lt;P&gt;See image below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="green_red.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/40808iEBB73190998F4681/image-size/medium?v=v2&amp;amp;px=400" role="button" title="green_red.PNG" alt="green_red.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745129#M719719</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-09-18T14:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745132#M719720</link>
      <description>&lt;P&gt;But does it turn red when both 1G and 2G are selected? Are you also looking for it to turn red when 1G or 2G was selected? When will it show Green? Only if 3G was selected with or without 1G and/or 2G?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745132#M719720</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-18T14:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745133#M719721</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2448"&gt;@stekol61&lt;/a&gt;&amp;nbsp; may be you have multiple occurrence of value so try with distinct and below condition&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=if(GetSelectedCount(Technology)&amp;gt;1,
if(concat(distinct Technology,'|')='1G|2G',red(),
if(concat(distinct Technology,'|')='1G|2G|3G',green())))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745133#M719721</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-18T14:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745144#M719722</link>
      <description>&lt;P&gt;Better now.&lt;/P&gt;&lt;P&gt;It should be green if 2G, 3G and 4G is selected and this works&lt;/P&gt;&lt;P&gt;Any other selection should be red&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745144#M719722</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-09-18T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745151#M719723</link>
      <description>&lt;P&gt;So, all 3 selected together it should be green? If only 3G is selected? or 3G and 4G selected?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:55:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745151#M719723</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-18T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745155#M719724</link>
      <description>&lt;P&gt;Yes, only 2G, 3G and 4G should be green.&lt;/P&gt;&lt;P&gt;Single value or any other combination, e.g 3G and 4G, should be red&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 14:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745155#M719724</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-09-18T14:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745182#M719725</link>
      <description>&lt;P&gt;So, then try this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;If(Concat(DISTINCT Technology, '|') = '2G|3G|4G', Green(), Red())&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Sep 2020 15:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745182#M719725</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-18T15:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745280#M719726</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2448"&gt;@stekol61&lt;/a&gt;&amp;nbsp; Just another option in case your field is not sorted and concat values sequence does not match with hard coded value then for safer side check condition for individual values so that it will work always&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=if(wildmatch(GetFieldSelections(Technology),'*2G*') and wildmatch(GetFieldSelections(Technology),'*3G*')  and wildmatch(GetFieldSelections(Technology),'*4G*') ,green(),red())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 20:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745280#M719726</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-18T20:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745502#M719727</link>
      <description>&lt;P&gt;THX, this solved my problem&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 09:01:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745502#M719727</guid>
      <dc:creator>stekol61</dc:creator>
      <dc:date>2020-09-21T09:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745577#M719728</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;why not add a sort parameter for this instead? Have not tested it, but the idea is to give a sort for the Concat function.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;If(Concat(DISTINCT Technology, '|', -Rank(Technology)) = '2G|3G|4G', Green(), Red())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 11:52:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745577#M719728</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-21T11:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: IF AND</title>
      <link>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745578#M719729</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp; Yes. We can give it. I&amp;nbsp; just&amp;nbsp; used another method instead without depending on the sorting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 11:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-AND/m-p/1745578#M719729</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-21T11:56:59Z</dc:date>
    </item>
  </channel>
</rss>

