<?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 garbage after if error! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214811#M68315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; it worked&lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jul 2010 14:50:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-06T14:50:23Z</dc:date>
    <item>
      <title>garbage after if error!</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214806#M68310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've written the lines below in the Text Color section of my Straight Table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 296pt; border-collapse: collapse;" width="392"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584; mso-outline-parent: collapsed;" width="98" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl22" colspan="4" height="20" style="width: 296pt; height: 15pt; background-color: transparent; mso-ignore: colspan; border: #ece9d8;" width="392"&gt;if ( FieldValue('OS1', 1) &amp;gt; 750 and RowNo() = 1)&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl23" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;TD style="background-color: transparent; border: #ece9d8;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl22" colspan="4" height="20" style="height: 15pt; background-color: transparent; mso-ignore: colspan; border: #ece9d8;"&gt;if( FieldValue('OS1', 14) = 70983.10938 , lightred())&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that it keeps giving me the error " Garbage after "if" ". Is there a way to seperate 2 lines in QLikView? I tried adding ( ; ) to the end of the first line but it didn't work.&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naeemeh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 22:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214806#M68310</guid>
      <dc:creator />
      <dc:date>2010-07-05T22:28:46Z</dc:date>
    </item>
    <item>
      <title>garbage after if error!</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214807#M68311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:307pt;border-collapse:collapse;" width="409"&gt;&lt;COLGROUP&gt;&lt;COL style="width:307pt;mso-width-source:userset;mso-width-alt:14957;mso-outline-parent:collapsed;" width="409" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl24" height="20" style="width:307pt;height:15pt;background-color:transparent;border:#ece9d8;" width="409"&gt;&lt;P&gt;These are the correct lines:&lt;/P&gt;&lt;P&gt;if( FieldValue('OS1', 1) &amp;gt; 750 and RowNo() = 1 , lightred())&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:15pt;"&gt;&lt;TD class="xl24" height="20" style="height:15pt;background-color:transparent;border:#ece9d8;"&gt;if( FieldValue('OS1', 14) = 70983.10938 , lightred())&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 22:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214807#M68311</guid>
      <dc:creator />
      <dc:date>2010-07-05T22:31:19Z</dc:date>
    </item>
    <item>
      <title>garbage after if error!</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214808#M68312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use the FieldValue() function in this context.&lt;/P&gt;&lt;P&gt;OS1 will be evaluated using the row dimensions.&lt;/P&gt;&lt;P&gt;if (sum(OS1) &amp;gt; 750 and RowNo() = 1, lightred())&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 00:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214808#M68312</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-07-06T00:19:11Z</dc:date>
    </item>
    <item>
      <title>garbage after if error!</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214809#M68313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;Thanks for the hint, it solved another problem that I had &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; but I still get the original error that I posted here. What I write is:&lt;/P&gt;&lt;P&gt;if ( sum(OS1) &amp;gt; 750 and RowNo() = 1, lightred() ) ;&lt;/P&gt;&lt;P&gt;if ( sum(OS1) &amp;gt; 65000 and RowNo() = 14, lightred() ) ;&lt;/P&gt;&lt;P&gt;And I get "Garbage after expression ";" " error. Is there any way that I can separate 2 lines?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naeemeh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 14:24:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214809#M68313</guid>
      <dc:creator />
      <dc:date>2010-07-06T14:24:54Z</dc:date>
    </item>
    <item>
      <title>garbage after if error!</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214810#M68314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can't separate two lines in an expression, you need to write an IF....THEN....ELSE group of statements like:&lt;/P&gt;&lt;P&gt;IF ( SUM ( OS1 ) &amp;gt; 750 AND RowNo() = 1 , LightRed() , IF ( SUM ( OS1 ) &amp;gt; 65000 AND RowNo() = 14 , LightRed() , Black() ) );&lt;/P&gt;&lt;P&gt;Note: I put the black in at the end so you have a colour if it doesn't match either of the conditions, change this colour to what you want.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 14:34:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214810#M68314</guid>
      <dc:creator />
      <dc:date>2010-07-06T14:34:47Z</dc:date>
    </item>
    <item>
      <title>garbage after if error!</title>
      <link>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214811#M68315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; it worked&lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 14:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/garbage-after-if-error/m-p/214811#M68315</guid>
      <dc:creator />
      <dc:date>2010-07-06T14:50:23Z</dc:date>
    </item>
  </channel>
</rss>

