<?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: Checking variance with variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896565#M1000412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still returned 0. think the problem lies in the variable. Both variables sums the same year and subtracts the same value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 08:34:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-16T08:34:08Z</dc:date>
    <item>
      <title>Checking variance with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896563#M1000410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm new to QW and trying to build an application that will store two chosen years in two different variables that can check the variance between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up two different input boxes with the variables vYear1 and vYear2. I have set up a choose in field trigger for the vYear1:&lt;/P&gt;&lt;P&gt;='&amp;gt;=' &amp;amp; vYear1 &amp;amp; '&amp;lt;=' &amp;amp; vYear1, and the same for vYear2: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;='&amp;gt;=' &amp;amp; vYear2 &amp;amp; '&amp;lt;=' &amp;amp; vYear2. i've also created two straight lists that are suposed to return Sum($(vYear1)Cost) and Sum&lt;SPAN style="font-size: 13.3333330154419px;"&gt;($(vYear2)Cost). I also have a variance straight list and i want it to return &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;({&amp;lt;$(vYear2)&amp;gt;} Cost) &lt;/SPAN&gt;- &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sum({&amp;lt;$(vYear1)&amp;gt;} Cost). &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is when i set the value in the input box both the variables in the straight lists gets effected and and i can't select more then one year every time a put in a new value in the input boxes. I cant get the Variance straight list to work either, i think it's because both variables are reading the same year but i don't know how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached a sample file with the qwv and the xlsx were i load the data from.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help, guidance and suggestions will be much appreciated! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 21:01:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896563#M1000410</guid>
      <dc:creator />
      <dc:date>2015-06-15T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking variance with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896564#M1000411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try expressions like this: Sum({&amp;lt;&lt;STRONG&gt;Year={$(vYear2)}&lt;/STRONG&gt;&amp;gt;} Cost) - Sum({&amp;lt;&lt;STRONG&gt;Year={$(vYear1)}&lt;/STRONG&gt;&amp;gt;} Cost)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896564#M1000411</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-16T08:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Checking variance with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896565#M1000412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still returned 0. think the problem lies in the variable. Both variables sums the same year and subtracts the same value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896565#M1000412</guid>
      <dc:creator />
      <dc:date>2015-06-16T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Checking variance with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896566#M1000413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure to use both variables. This will always return zero: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Sum({&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Year={$(vYear1)}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;gt;} Cost) - Sum({&amp;lt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;Year={$(vYear1)}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;gt;} Cost)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:53:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896566#M1000413</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-16T08:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Checking variance with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896567#M1000414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;both variables are beeing used. The thing is when i use the input boxes, both variables read from the the box where i made the latest entry. I need the varibles to read from the input boxes &lt;SPAN class="hps"&gt;separately to make it work.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 08:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896567#M1000414</guid>
      <dc:creator />
      <dc:date>2015-06-16T08:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Checking variance with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896568#M1000415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea what you mean. Your example qvw file works fine after fixing the expressions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 09:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896568#M1000415</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-16T09:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Checking variance with variables</title>
      <link>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896569#M1000416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh whatch the wrong application:P Thank you!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 10:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Checking-variance-with-variables/m-p/896569#M1000416</guid>
      <dc:creator />
      <dc:date>2015-06-16T10:42:00Z</dc:date>
    </item>
  </channel>
</rss>

