<?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: I need help solving a problem with variables. in Qlik Answers</title>
    <link>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545351#M651</link>
    <description>&lt;P&gt;I did everything and the values ​​are 100% within the normal table.&lt;BR /&gt;Thank you for help!&lt;/P&gt;</description>
    <pubDate>Tue, 24 Mar 2026 11:19:40 GMT</pubDate>
    <dc:creator>RodrigoAsa</dc:creator>
    <dc:date>2026-03-24T11:19:40Z</dc:date>
    <item>
      <title>I need help solving a problem with variables.</title>
      <link>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545216#M645</link>
      <description>&lt;DIV&gt;Sum({&amp;lt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Bonificação = {'Não'},&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Ano = {'$(vAnoAnt)', '$(vAnoAnt)'}&lt;/DIV&gt;
&lt;DIV&gt;&amp;gt;} [Faturamento Líquido - Preço de Venda])&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;/&lt;/DIV&gt;
&lt;DIV&gt;Sum({&amp;lt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Bonificação = {'Não'},&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Ano = {'$(vAnoAnt)', '$(vAnoAnt)'}&lt;/DIV&gt;
&lt;DIV&gt;&amp;gt;} total &amp;lt;Ano&amp;gt; [Faturamento Líquido - Preço de Venda])&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create an expression using only one measure, but the graphical measures become incorrect when I insert variables from different years.&lt;BR /&gt;&lt;BR /&gt;vAnoAnt = Last Year&lt;/P&gt;
&lt;P&gt;vAnoAtual = Today Year&lt;/P&gt;
&lt;P&gt;Ano = Year&lt;/P&gt;
&lt;P&gt;The others values are not important.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2026 14:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545216#M645</guid>
      <dc:creator>RodrigoAsa</dc:creator>
      <dc:date>2026-03-20T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: I need help solving a problem with variables.</title>
      <link>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545246#M646</link>
      <description>&lt;P&gt;Hi, I suppose one of the&amp;nbsp;&lt;SPAN&gt;vAnoAnt in&lt;/SPAN&gt; "&lt;SPAN&gt;Ano = {'$(vAnoAnt)', '$(vAnoAnt)'}" it's really a&amp;nbsp;vAnoAtual.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When you set the expression, in the text box below there is an expanded expression hat show how all the $( are converted in values. It's converted as expected?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you change the $(vAnoAnt) and $(vAnoAtual) by fixed values (like '2025', '2026'), it works? IF it works it's something about how&amp;nbsp;vAnoAnt and&amp;nbsp;vAnoAtual are defined. If not, it's something about the expression itself, not the variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another thing: you're using TOTAL &amp;lt;Ano&amp;gt;, and that will have meaning if Ano is one of the dimensions,a nd in that case, the dimension will filter the expression, so each year will only return data for that year, as the dimension it's applying his value as filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think it will be better if you show the table with the dimensions used and what do you expect for each year.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2026 12:03:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545246#M646</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2026-03-22T12:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: I need help solving a problem with variables.</title>
      <link>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545305#M648</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de tela 2026-03-23 110924.png" style="width: 551px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/187403i44D05E6AAAAB0C18/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de tela 2026-03-23 110924.png" alt="Captura de tela 2026-03-23 110924.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Can you see the %?&amp;nbsp;&lt;BR /&gt;The&amp;nbsp;percentage cannot exceed 100%, because this is a participion table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;Sum({&amp;lt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Bonificação = {'Não'},&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Ano = {'$(vAnoAtual)', '$(vAnoAnt)'}&lt;/DIV&gt;
&lt;DIV&gt;&amp;gt;} [Faturamento Líquido - Preço de Venda])&lt;/DIV&gt;
&lt;DIV&gt;/&lt;/DIV&gt;
&lt;DIV&gt;Sum({&amp;lt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Bonificação = {'Não'},&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Ano = {'$(vAnoAtual)', '$(vAnoAnt)'}&lt;/DIV&gt;
&lt;DIV&gt;&amp;gt;} total &amp;lt;Ano&amp;gt; [Faturamento Líquido - Preço de Venda])&lt;BR /&gt;&lt;BR /&gt;I know there are no error in my data upload, but I don't know where is the error.&lt;BR /&gt;Asking your question "&lt;SPAN&gt;If you change the $(vAnoAnt) and $(vAnoAtual) by fixed values (like '2025', '2026'), it works?"&amp;nbsp;&lt;BR /&gt;Yeah, the result is the same, the&amp;nbsp; values of the variables are correct!&lt;BR /&gt;I tried doing other things, like table settings.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;BR /&gt;The dimensions&amp;nbsp;are: Ano (main dimension), Categoria(secondary) and the alternatives dimensions (Sub Categoria, Grupo)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 Mar 2026 14:25:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545305#M648</guid>
      <dc:creator>RodrigoAsa</dc:creator>
      <dc:date>2026-03-23T14:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: I need help solving a problem with variables.</title>
      <link>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545323#M649</link>
      <description>&lt;P&gt;Hi, yes, I don't see why it would go over 100%, maybe something about rounding values or the conversion between decimal values converted to binary values and added up.&lt;/P&gt;&lt;P&gt;I would try to copy the chart and change it to table to understand what's behind those values, keeping the % and adding&amp;nbsp;numerator and denominator in different expressions.&lt;/P&gt;&lt;P&gt;I would try first a table with only Ano as dimension to check if it shows the 100%, and check the values. Then adding the categories, check than the total values are the same, and adding more decimals to the expression, ecporting the values and checking if the values added up sums 100% or it's really an higher value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 19:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545323#M649</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2026-03-23T19:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: I need help solving a problem with variables.</title>
      <link>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545351#M651</link>
      <description>&lt;P&gt;I did everything and the values ​​are 100% within the normal table.&lt;BR /&gt;Thank you for help!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2026 11:19:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Answers/I-need-help-solving-a-problem-with-variables/m-p/2545351#M651</guid>
      <dc:creator>RodrigoAsa</dc:creator>
      <dc:date>2026-03-24T11:19:40Z</dc:date>
    </item>
  </channel>
</rss>

