<?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 Variable not accept brackets. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235555#M86811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using this variable to divide something, make sure the second $(VR_PZ_Médio_Entrega) is not 0 because that seems to be the only part of the formula that would be affected by adding parentheses.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 19:51:17 GMT</pubDate>
    <dc:creator>pover</dc:creator>
    <dc:date>2010-12-29T19:51:17Z</dc:date>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235552#M86808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;I have a variable that has the following syntax:&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;if(&lt;B&gt;&lt;I&gt;$(VR_PZ_Médio_Entrega)&lt;/I&gt;&lt;/B&gt;&amp;lt;30,(sum(VENDAS_MES_ANTERIOR1)/(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Anterior&lt;/I&gt;&lt;/B&gt;)))*(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Atuais&lt;/I&gt;&lt;/B&gt;)) )*(1+&lt;B&gt;&lt;I&gt;$(VR_simulador_quant_venda)&lt;/I&gt;&lt;/B&gt;)),&lt;/P&gt;&lt;P style="line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;"&gt;&lt;B&gt;&lt;I&gt;$(VR_PZ_Médio_Entrega)&lt;/I&gt;&lt;/B&gt;*((sum(VENDAS_MES_ANTERIOR1)/(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Anterior&lt;/I&gt;&lt;/B&gt;)))*(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Atuais&lt;/I&gt;&lt;/B&gt;)) )*(1+&lt;B&gt;&lt;I&gt;$(VR_simulador_quant_venda)&lt;/I&gt;&lt;/B&gt;))/30))&lt;/P&gt;&lt;P&gt;And her name is: &lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;$(VR_Reposição_Quant_Venda_Prevista)&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;I&gt;Now,&lt;/I&gt; if&lt;/B&gt; I put parenthesis between the variable, it does not bring value.&lt;/P&gt;&lt;P&gt;($(VR_Reposição_Quant_Venda_Prevista) )&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Syntax brings the value of a field and divide by the number of working days in the previous month and multiply by the amount of days of current month.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 19:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235552#M86808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-29T19:07:36Z</dc:date>
    </item>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235553#M86809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you put the parentheses directly in the variable?&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;(&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;if(&lt;B&gt;&lt;I&gt;$(VR_PZ_Médio_Entrega)&lt;/I&gt;&lt;/B&gt;&amp;lt;30,(sum(VENDAS_MES_ANTERIOR1)/(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Anterior&lt;/I&gt;&lt;/B&gt;)))*(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Atuais&lt;/I&gt;&lt;/B&gt;)) )*(1+&lt;B&gt;&lt;I&gt;$(VR_simulador_quant_venda)&lt;/I&gt;&lt;/B&gt;)),&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;&lt;I&gt;$(VR_PZ_Médio_Entrega)&lt;/I&gt;&lt;/B&gt;*((sum(VENDAS_MES_ANTERIOR1)/(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Anterior&lt;/I&gt;&lt;/B&gt;)))*(avg((&lt;B&gt;&lt;I&gt;Dias_Uteis_Atuais&lt;/I&gt;&lt;/B&gt;)) )*(1+&lt;B&gt;&lt;I&gt;$(VR_simulador_quant_venda)&lt;/I&gt;&lt;/B&gt;))/30))&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;)&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0cm 0cm 0pt;mso-layout-grid-align:none;"&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 19:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235553#M86809</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-29T19:16:33Z</dc:date>
    </item>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235554#M86810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not bring any value ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 19:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235554#M86810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-29T19:33:35Z</dc:date>
    </item>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235555#M86811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using this variable to divide something, make sure the second $(VR_PZ_Médio_Entrega) is not 0 because that seems to be the only part of the formula that would be affected by adding parentheses.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 19:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235555#M86811</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-29T19:51:17Z</dc:date>
    </item>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235556#M86812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The variable (VR_PZ_Médio_Entrega) has value. Interesting is that if I leave the formula just = sum (VENDAS_MES_ANTERIOR1) it goes right to the same variable in parentheses. I took the formula the amount of previous days (avg ((Dias_Uteis_Anterior))) and current days avg ((Dias_Uteis_Atuais))). When I delete these two variables in the expression of my right. In variable (avg ((Dias_Uteis_Anterior))) the result is 22 and avg ((Dias_Uteis_Atuais))) is 23. If I replace my variable in the field by the expression, the result also of the right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 20:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235556#M86812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-29T20:06:14Z</dc:date>
    </item>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235557#M86813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe QV doesn't like that you are nesting $($()). It might work if you put a = before the if() in the variable, but you might not get the result you want.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 20:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235557#M86813</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-12-29T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235558#M86814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Further simplified my expression but still not bringing anything.&lt;BR /&gt;= sum (VENDAS_MES_ANTERIOR1) / avg ($ (Dias_Uteis_Anterior)).&lt;BR /&gt;&lt;BR /&gt;If I make a variable with the expression above and take it to a field, does not work.&lt;BR /&gt;&lt;BR /&gt;But if I take the full expression for the field she works.&lt;BR /&gt;&lt;BR /&gt;I see it is a problem as that term is mounted in the variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 20:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235558#M86814</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-29T20:15:39Z</dc:date>
    </item>
    <item>
      <title>Variable not accept brackets.</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235559#M86815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another test I did was create another variable with the following expression: sum (VENDAS_MES_ANTERIOR1) / avg (NETWORKDAYS (MonthStart (AddMonths (today (),(- 1))), MonthsEnd (1, 1 )))). (),(- Today The variable name is: $ (VR_Reposição_Quant_Venda_Prevista). If within a column esso use the variable up that way, = $ (VR_Reposição_Quant_Venda_Prevista), she brings me the result. More to do as follows, = ($ (VR_Reposição_Quant_Venda_Prevista)) with the parenthesis it gives error. I'll need to have the relatives as the result of this variable with other fields will be used for other calculations. eg = ($ (VR_Reposição_Quant_Venda_Prevista) + A)-B / C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 20:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-not-accept-brackets/m-p/235559#M86815</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-29T20:41:04Z</dc:date>
    </item>
  </channel>
</rss>

