<?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 Expression Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299934#M111093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;This should work...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Brand = '&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Mazda',&lt;/SPAN&gt; LightRed()) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2011 11:16:52 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2011-09-29T11:16:52Z</dc:date>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299933#M111092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to colour the background of a cell in a straight table if the dimension equals a certain value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have clicked on + sign next to my demonsion name and then double clicked on Background and entered the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(((&lt;SPAN style="color: #800000;"&gt;Brand&lt;/SPAN&gt;)&lt;SPAN style="color: #800000;"&gt;"Mazda"&lt;/SPAN&gt;), LightRed) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the message saying error in expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what i'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299933#M111092</guid>
      <dc:creator>Sunil_Kenth</dc:creator>
      <dc:date>2011-09-29T11:07:57Z</dc:date>
    </item>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299934#M111093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;This should work...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Brand = '&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Mazda',&lt;/SPAN&gt; LightRed()) &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299934#M111093</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-09-29T11:16:52Z</dc:date>
    </item>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299935#M111094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Got it working using the following expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;( &lt;SPAN style="color: #800000;"&gt;Brand&lt;/SPAN&gt; = 'Mazda', &lt;SPAN style="color: #0000ff;"&gt;green&lt;/SPAN&gt;(), &lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;( &lt;SPAN style="color: #800000;"&gt;Brand&lt;/SPAN&gt; = 'Ford', &lt;SPAN style="color: #0000ff;"&gt;green&lt;/SPAN&gt;(), &lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;( &lt;SPAN style="color: #800000;"&gt;Brand&lt;/SPAN&gt; = 'BMW', &lt;SPAN style="color: #0000ff;"&gt;green&lt;/SPAN&gt;(),&lt;SPAN style="color: #0000ff;"&gt;white&lt;/SPAN&gt;()&lt;BR /&gt;))) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299935#M111094</guid>
      <dc:creator>Sunil_Kenth</dc:creator>
      <dc:date>2011-09-29T11:17:29Z</dc:date>
    </item>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299936#M111095</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;You need to write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF( Brand = 'Mazda', Lightred())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299936#M111095</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-09-29T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299937#M111096</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;Use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If( Brand = 'Mazda' or Brand = 'Ford' or Brand = 'BMW', green(),white())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299937#M111096</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2011-09-29T11:20:02Z</dc:date>
    </item>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299938#M111097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(((&lt;SPAN style="color: #800000;"&gt;Brand&lt;/SPAN&gt;)=&lt;SPAN style="color: #800000;"&gt;"Mazda"&lt;/SPAN&gt;), Rgb(255,102,102))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299938#M111097</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-09-29T11:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299939#M111098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Sunil - If you have massive dataset, then you need to &lt;SPAN style="color: #000080;"&gt;&lt;STRONG style="text-decoration: underline;"&gt;Load &lt;/STRONG&gt;&lt;/SPAN&gt;the Colors within the Script instead of using the IF&amp;nbsp; - conditional statement. This will improve the performance compared to using the IF statements.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I hope this helps!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299939#M111098</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-09-29T11:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299940#M111099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks DV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data set isn’t that huge so it’s performance is fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:27:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299940#M111099</guid>
      <dc:creator>Sunil_Kenth</dc:creator>
      <dc:date>2011-09-29T11:27:17Z</dc:date>
    </item>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299941#M111100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; As a matter of performance, try avoid using 'if' and use pick/match instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(Brand, 'Mazda'), lightred())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 11:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/299941#M111100</guid>
      <dc:creator />
      <dc:date>2011-09-29T11:36:50Z</dc:date>
    </item>
  </channel>
</rss>

