<?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: Variable does not work in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353328#M131083</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on how you have set your variable. If you only input the numbers, for example 2011, then the following expression should work (note the lack of quoting and parentheses):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13396781215363117" jivemacro_uid="_13396781215363117"&gt;&lt;P&gt;Sum({&amp;lt; Year = {$(LastYear)} &amp;gt;} LINEAMOUNT)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2012 12:48:33 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2012-06-14T12:48:33Z</dc:date>
    <item>
      <title>Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353326#M131081</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;i have two input fields, two variables: LastYear, CurrentYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input should connect to the command: Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My expression looks like this:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;Year={"=$(LastYear)"}&amp;gt;}LINEAMOUNT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What should this command do?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Summarize the Lineamount for the Year i wrote into the input field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesnt give me what i want. It ignores it completely and gives me only Lineamount. Pls show me where i am wrong. &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>Thu, 14 Jun 2012 12:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353326#M131081</guid>
      <dc:creator />
      <dc:date>2012-06-14T12:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353327#M131082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;sum({$&amp;lt;Year={'$(LastYear)'}&amp;gt;}LINEAMOUNT)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:48:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353327#M131082</guid>
      <dc:creator />
      <dc:date>2012-06-14T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353328#M131083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on how you have set your variable. If you only input the numbers, for example 2011, then the following expression should work (note the lack of quoting and parentheses):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13396781215363117" jivemacro_uid="_13396781215363117"&gt;&lt;P&gt;Sum({&amp;lt; Year = {$(LastYear)} &amp;gt;} LINEAMOUNT)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 12:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353328#M131083</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-14T12:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353329#M131084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. One more question if i may:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the table(picture) i am working on. In the filed "neto firme" i want to see the percentage share for the "Grupa" row of the TOTAL SUM(Grupa).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i address the total sum of grupa, what is the right formula for? I dont know the formula at all:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[LINEAMOUNT(selected year)]/ ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353329#M131084</guid>
      <dc:creator />
      <dc:date>2012-06-14T13:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353330#M131085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure either but something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13396806034554546" jivemacro_uid="_13396806034554546"&gt;&lt;P&gt;Sum(Grupa) / Sum(TOTAL Grupa)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353330#M131085</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-14T13:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353331#M131086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately not. When i try this formula: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Promet Tek. godina]/sum(Total [Promet Tek. godina])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesnt show me anything...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353331#M131086</guid>
      <dc:creator />
      <dc:date>2012-06-14T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353332#M131087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kristian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to use the same expression under "Promet Tek. godina" (instead of the label) divided into the same expression, but using TOTAL as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 13:41:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353332#M131087</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-06-14T13:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353333#M131088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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>Fri, 15 Jun 2012 05:45:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353333#M131088</guid>
      <dc:creator />
      <dc:date>2012-06-15T05:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable does not work</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353334#M131089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These Variables are realy a pain in the sitting muscle...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ive got a new one that doesnt work properly. I would appreciate any help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Formats:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Datum_fakture: dd.mm.yyyy&lt;/P&gt;&lt;P&gt;vDatum: dd.mm.yyyy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT {$&amp;lt;Datum_fakture = {"&amp;lt;=$(vDatum) &amp;gt;$(=AddMonths(vDatum,-12))"}&amp;gt;} CUSTACCOUNT)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This formula should:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Give me the count of Customers in the last 12 months fom the Date out of vDatum inputbox&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(DISTINCT {$&amp;lt;Datum_fakture = {"&amp;gt;=$(=AddMonths(vDatum,-12)) &amp;lt;$(=AddMonths(vDatum,-24))"}&amp;gt;} CUSTACCOUNT)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This formula should:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Give me the count of Customers in the previous12 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No function works properly, can somebody show me where i am wrong?&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>Fri, 15 Jun 2012 06:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-does-not-work/m-p/353334#M131089</guid>
      <dc:creator />
      <dc:date>2012-06-15T06:32:06Z</dc:date>
    </item>
  </channel>
</rss>

