<?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 Help required in 'IF Statement' while displaying the Back Ground Color in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215068#M68548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;AND means occurance of the two events simulteneouly ('Sat' and 'Sun'), which is not possible in a row, it could be either Sat or Sun. So.. AND doesn't work for your case.&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2011 08:27:45 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2011-04-14T08:27:45Z</dc:date>
    <item>
      <title>Help required in 'IF Statement' while displaying the Back Ground Color</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215065#M68545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I was using the below code in the background of the group to display BG color as red when the day is sunday. It works with the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;=if(weekday(date) ='Sun',Rgb(255,0,0))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Now I wanted to display BG color as red when the day is saturday and sunday. I used the below code but it is not working as expected. I know it is simple if statement only but not sure why it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;=if(weekday(date) ='Sat' and weekday(date) ='Sun',Rgb(255,0,0))&lt;BR /&gt;=if(weekday(date) ='Sat','Sun',Rgb(255,0,0))&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Can some one help me on this please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 08:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215065#M68545</guid>
      <dc:creator />
      <dc:date>2011-04-14T08:06:28Z</dc:date>
    </item>
    <item>
      <title>Help required in 'IF Statement' while displaying the Back Ground Color</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215066#M68546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;=if(weekday(date) ='Sat' or weekday(date) ='Sun',Rgb(255,0,0))&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 08:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215066#M68546</guid>
      <dc:creator />
      <dc:date>2011-04-14T08:10:17Z</dc:date>
    </item>
    <item>
      <title>Help required in 'IF Statement' while displaying the Back Ground Color</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215067#M68547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anders&lt;/P&gt;&lt;P&gt;Thanks for your help! Thats does the trick!&lt;/P&gt;&lt;P&gt;Made very silly mistake again. Very bad of me. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;By the way still wondering why the below code didn't work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;=if(weekday(date) ='Sat' and weekday(date) ='Sun',Rgb(255,0,0))&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 08:22:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215067#M68547</guid>
      <dc:creator />
      <dc:date>2011-04-14T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Help required in 'IF Statement' while displaying the Back Ground Color</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215068#M68548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;AND means occurance of the two events simulteneouly ('Sat' and 'Sun'), which is not possible in a row, it could be either Sat or Sun. So.. AND doesn't work for your case.&lt;/P&gt;&lt;P&gt;Regards, tresesco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 08:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215068#M68548</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-04-14T08:27:45Z</dc:date>
    </item>
    <item>
      <title>Help required in 'IF Statement' while displaying the Back Ground Color</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215069#M68549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;tresesco wrote:&lt;BR /&gt;AND means occurance of the two events simulteneouly ('Sat' and 'Sun'), which is not possible in a row, it could be either Sat or Sun. So.. AND doesn't work for your case. &amp;lt;div&amp;gt;&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Thanks for the explanation!&lt;/P&gt;&lt;P&gt;I totally agree with you! I have done the mistake.&lt;/P&gt;&lt;P&gt;I didn't think of it when I was using AND in the if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2011 08:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-in-IF-Statement-while-displaying-the-Back-Ground/m-p/215069#M68549</guid>
      <dc:creator />
      <dc:date>2011-04-14T08:30:41Z</dc:date>
    </item>
  </channel>
</rss>

