<?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 formula doesnt work as intendet in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-formula-doesnt-work-as-intendet/m-p/381729#M142420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What a stupid thing i did... thank you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 08:29:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-29T08:29:53Z</dc:date>
    <item>
      <title>If formula doesnt work as intendet</title>
      <link>https://community.qlik.com/t5/QlikView/If-formula-doesnt-work-as-intendet/m-p/381727#M142418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a little question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'1' and PriceGroup &amp;lt;&amp;gt;'A',[Rabat A T1],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'2' and PriceGroup &amp;lt;&amp;gt;'A',[Rabat A T2],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'3' and PriceGroup &amp;lt;&amp;gt;'A',[Rabat A T3],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'1' and PriceGroup &amp;lt;&amp;gt;'D',[Rabat D/G T1],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'2' and PriceGroup &amp;lt;&amp;gt;'D',[Rabat D/G T2],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'3' and PriceGroup &amp;lt;&amp;gt;'D',[Rabat D/G T3],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'1' and PriceGroup &amp;lt;&amp;gt;'G',[Rabat D/G T1],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'2' and PriceGroup &amp;lt;&amp;gt;'G',[Rabat D/G T2],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'3' and PriceGroup &amp;lt;&amp;gt;'G',[Rabat D/G T3],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'1' and PriceGroup &amp;lt;&amp;gt;'M',[Rabat M T1],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'2' and PriceGroup &amp;lt;&amp;gt;'M',[Rabat M T2],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'3' and PriceGroup &amp;lt;&amp;gt;'M',[Rabat M T3],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'4' and PriceGroup &amp;lt;&amp;gt;'T',[Trade 4],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'5' and PriceGroup &amp;lt;&amp;gt;'T',[Trade 5],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'6' and PriceGroup &amp;lt;&amp;gt;'T',[Trade 6],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'7' and PriceGroup &amp;lt;&amp;gt;'T',[Trade 7],&lt;/P&gt;&lt;P&gt;if([Kl. kupca cjenik]&amp;lt;&amp;gt;'8' and PriceGroup &amp;lt;&amp;gt;'T',[Trade 8],&lt;/P&gt;&lt;P&gt;)))))))))))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my Expression in a chart. The formula should do: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Check Kl kupca Cjenik value and PriceGroup Value&lt;/P&gt;&lt;P&gt;- When OK then show value "Rabat xx"&lt;/P&gt;&lt;P&gt;- else check next...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in my source table(Kl. kupca and PriceGroup) i did select these values: 8 and T, but the chart expression gives me the value of the first one(1 and A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody an idea what i did wrong in my expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 07:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-formula-doesnt-work-as-intendet/m-p/381727#M142418</guid>
      <dc:creator />
      <dc:date>2012-08-29T07:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: If formula doesnt work as intendet</title>
      <link>https://community.qlik.com/t5/QlikView/If-formula-doesnt-work-as-intendet/m-p/381728#M142419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;&amp;gt; means 'not equal to'. Because you have selected 8 (= not equal to 1) and T (= not equal to A) the first if-then-else evaluates to 'true', so &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;[Rabat A T1]&lt;/SPAN&gt; will be returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change all &amp;lt;&amp;gt;'s to ='s and it should work as you intend to.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 07:51:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-formula-doesnt-work-as-intendet/m-p/381728#M142419</guid>
      <dc:creator />
      <dc:date>2012-08-29T07:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: If formula doesnt work as intendet</title>
      <link>https://community.qlik.com/t5/QlikView/If-formula-doesnt-work-as-intendet/m-p/381729#M142420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What a stupid thing i did... thank you! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 08:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-formula-doesnt-work-as-intendet/m-p/381729#M142420</guid>
      <dc:creator />
      <dc:date>2012-08-29T08:29:53Z</dc:date>
    </item>
  </channel>
</rss>

