<?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 Condtion Problem.Need a solution as soon as Possible in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Condtion-Problem-Need-a-solution-as-soon-as-Possible/m-p/146222#M24818</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 m having a problem in writing a macro here.I have two variables name My Budget and Total Sale.In Mybudget i have assign it a value 8000.and in totalSale the value is 69950(sum of some expression).then i use a two msg box to show each value .it is showing the right value.then i use a conditon that if the value of total sale which is 69950 is less than 8000 then show a msg box which says my sales are less else msg box show that my Sales are greater.The right answere is that it has to show my sales are greater but it is showing My sales are lesss.i dont know y ....here is my Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShowPoPUp&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;MsgBox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;MsgBox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;("MySales are greater than 8000") &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;end&lt;/P&gt;&lt;B&gt;if&lt;/B&gt;&lt;P&gt;end&lt;/P&gt;&lt;B&gt;Sub&lt;/B&gt; ("MySales are less than 8000")&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;else&lt;/P&gt;(v.getcontent. &lt;B&gt;string&lt;/B&gt;) &amp;lt; (a.getcontent. &lt;B&gt;string&lt;/B&gt;) &lt;B&gt;then&lt;/B&gt; a=ActiveDocument.Variables("MyBudget")&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;v=ActiveDocument.Variables("TotalSale")&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Msgbox&lt;/P&gt;(a.getcontent. &lt;B&gt;string&lt;/B&gt;)&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Msgbox&lt;/P&gt;(v.getcontent. &lt;B&gt;string&lt;/B&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sikandar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2009 12:32:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-06-09T12:32:57Z</dc:date>
    <item>
      <title>Condtion Problem.Need a solution as soon as Possible</title>
      <link>https://community.qlik.com/t5/QlikView/Condtion-Problem-Need-a-solution-as-soon-as-Possible/m-p/146222#M24818</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 m having a problem in writing a macro here.I have two variables name My Budget and Total Sale.In Mybudget i have assign it a value 8000.and in totalSale the value is 69950(sum of some expression).then i use a two msg box to show each value .it is showing the right value.then i use a conditon that if the value of total sale which is 69950 is less than 8000 then show a msg box which says my sales are less else msg box show that my Sales are greater.The right answere is that it has to show my sales are greater but it is showing My sales are lesss.i dont know y ....here is my Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ShowPoPUp&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;MsgBox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;MsgBox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;("MySales are greater than 8000") &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;end&lt;/P&gt;&lt;B&gt;if&lt;/B&gt;&lt;P&gt;end&lt;/P&gt;&lt;B&gt;Sub&lt;/B&gt; ("MySales are less than 8000")&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;else&lt;/P&gt;(v.getcontent. &lt;B&gt;string&lt;/B&gt;) &amp;lt; (a.getcontent. &lt;B&gt;string&lt;/B&gt;) &lt;B&gt;then&lt;/B&gt; a=ActiveDocument.Variables("MyBudget")&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;set&lt;/P&gt;v=ActiveDocument.Variables("TotalSale")&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Msgbox&lt;/P&gt;(a.getcontent. &lt;B&gt;string&lt;/B&gt;)&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Msgbox&lt;/P&gt;(v.getcontent. &lt;B&gt;string&lt;/B&gt;)&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sikandar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 12:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condtion-Problem-Need-a-solution-as-soon-as-Possible/m-p/146222#M24818</guid>
      <dc:creator />
      <dc:date>2009-06-09T12:32:57Z</dc:date>
    </item>
    <item>
      <title>Condtion Problem.Need a solution as soon as Possible</title>
      <link>https://community.qlik.com/t5/QlikView/Condtion-Problem-Need-a-solution-as-soon-as-Possible/m-p/146223#M24819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sikandar,&lt;/P&gt;&lt;P&gt;try &amp;amp; paste your macro once again. First paste it in notepad &amp;amp; then paste it in the Post , direct copy paste doesn't paste the content properly. From the little bit I could understand , try &amp;amp; use CINT(stringvalue) instead of using the string value of the expression. It will not give the required input.&lt;/P&gt;&lt;P&gt;e.g. M&lt;B&gt;sgbox&lt;/B&gt; &lt;B&gt;CINT&lt;/B&gt;("1000")&amp;lt;&lt;B&gt;CINT&lt;/B&gt;("2000")&lt;/P&gt;&lt;P&gt;See if it help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 17:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condtion-Problem-Need-a-solution-as-soon-as-Possible/m-p/146223#M24819</guid>
      <dc:creator>amars</dc:creator>
      <dc:date>2009-06-09T17:55:54Z</dc:date>
    </item>
    <item>
      <title>Condtion Problem.Need a solution as soon as Possible</title>
      <link>https://community.qlik.com/t5/QlikView/Condtion-Problem-Need-a-solution-as-soon-as-Possible/m-p/146224#M24820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi amras&lt;/P&gt;&lt;P&gt;Armas the solution you gave worked,Thank you sooo much&lt;/P&gt;&lt;P&gt;Regrds&lt;/P&gt;&lt;P&gt;Sikandar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2009 18:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Condtion-Problem-Need-a-solution-as-soon-as-Possible/m-p/146224#M24820</guid>
      <dc:creator />
      <dc:date>2009-06-09T18:16:34Z</dc:date>
    </item>
  </channel>
</rss>

