<?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 the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745299#M266081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I was not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the calculation of status, the correct values are in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagem1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75842_Imagem1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2015 16:05:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-21T16:05:55Z</dc:date>
    <item>
      <title>If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745295#M266077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need to create a Dimension Calculated or in my script the calculation below, however I'm not getting.&lt;/P&gt;&lt;P&gt;In copy excel to illustrate what I'm talking about.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 15:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745295#M266077</guid>
      <dc:creator />
      <dc:date>2015-01-21T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745296#M266078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Filial&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;STATUS&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sum([Itens Total])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;sum([Itens Estoque])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;sum([itens Liberados])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;59.033 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;7.404 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;51.629 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CRAVINHOS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;BLOQUEIO PARCIAL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;37.279&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2.39&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;34.889&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CRAVINHOS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;BLOQUEIO TOTAL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;14.754&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2.914&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;11.84&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CRAVINHOS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;SEM BLOQUEIO&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;7&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2.1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;4.9&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 15:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745296#M266078</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-01-21T15:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745297#M266079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 15:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745297#M266079</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-01-21T15:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745298#M266080</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;I see you have to move Status to rows, because now you have it in columns. Just "drag and drop" label "status" and try to move it to rows.&lt;/P&gt;&lt;P&gt;Second thing - in Excel you have 2 expressions, and in QV you must have also 2 expressions (in table properties, on Expression tab, click "Add" button and write second expression):&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[itens Liberados]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Itens Estoque]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 15:42:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745298#M266080</guid>
      <dc:creator />
      <dc:date>2015-01-21T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745299#M266081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I was not clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is in the calculation of status, the correct values are in excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagem1.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/75842_Imagem1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 16:05:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745299#M266081</guid>
      <dc:creator />
      <dc:date>2015-01-21T16:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745300#M266082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;these two are exactly the same :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( ([Itens Total] - [itens Liberados]) = [Itens Estoque], 'BLOQUEIO PARCIAL',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ( ([Itens Total] - [Itens Estoque]) = [itens Liberados], 'SEM BLOQUEIO',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for the same if, you try to apply 2 different values. It will always be the first I guess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 16:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745300#M266082</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-01-21T16:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745301#M266083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fallowing your logic from Excel file Try this in your script&lt;/P&gt;&lt;P&gt;IF ([Itens Total] = [Itens Estoque], 'BLOQUEIO TOTAL',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ( [Itens Total] - [itens Liberados]=[Itens Estoque] AND&amp;nbsp; IsNull([Itens Estoque]), 'BLOQUEIO PARCAIL',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF([Itens Total]-[itens Liberados] =[Itens Estoque], 'BLOQUEIO TOTAL'))) AS STATUS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 16:37:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745301#M266083</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-01-21T16:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745302#M266084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this, but it did not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble finding the right logic to solve the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 17:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745302#M266084</guid>
      <dc:creator />
      <dc:date>2015-01-21T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: If the script</title>
      <link>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745303#M266085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your Excel file Column J2&lt;/P&gt;&lt;P&gt;=H2+I2&lt;/P&gt;&lt;P&gt;drag down&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your .qwv file change the IF statement to&lt;/P&gt;&lt;P&gt;IF ( [Itens Total] = [Itens Estoque], 'BLOQUEIO TOTAL',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF ( [Itens Total] = [itens Liberados],'SEM BLOQUEIO',&amp;nbsp; 'BLOQUEIO PARCAIL'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )) AS STATUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason when the Total was enter as number not as formula QLikview wrongly calculated the totals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 11:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-the-script/m-p/745303#M266085</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-01-22T11:31:51Z</dc:date>
    </item>
  </channel>
</rss>

