<?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: Problem with variable evaluation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334695#M29217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Give this a shot&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(&lt;/SPAN&gt;$(vBPHYr2_Var)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;/$(vBPHYr3)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jul 2017 17:41:15 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-05T17:41:15Z</dc:date>
    <item>
      <title>Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334692#M29214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have variables set up for the following calculations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying these variables via Master Measures in a straight table in Qlik Sense 3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Name:&amp;nbsp; vBPHYr2&lt;/P&gt;&lt;P&gt;Definition: &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year = {"$(=max({1} Year)-1)"}&amp;gt;} HoursWorked) /&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;RecordType={'RECEIPT'},Year = {"$(=max({1} Year)-1)"}&amp;gt;} UnitsReceived)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets me a "Boxes Per Hour" value that evaluates correctly. For example, I get a value of 5.83 for the selected Product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Name:&amp;nbsp; vBPHYr3&lt;/P&gt;&lt;P&gt;Definition: &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;Year = {"$(=max({1} Year)-2)"}&amp;gt;} HoursWorked) /&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;RecordType={'RECEIPT'},Year = {"$(=max({1} Year)-2)"}&amp;gt;} UnitsReceived)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evaluates correctly as 5.10 for the specified year and selected Product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Name: vBPHYr2_Var&lt;/P&gt;&lt;P&gt;Definition:&amp;nbsp; $(vBPHYr3) - $(vBPHYr2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Evaluates correctly as 0.72&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to take vBPHYr2_Var and divide by vBPHYr3 to get the variance as a percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Name:&amp;nbsp; vBPHYr2_Var%&lt;/P&gt;&lt;P&gt;Definition:&amp;nbsp; $(vBPHYr2_Var) / $(vBPHYr3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This evaluates to 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 16:39:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334692#M29214</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2017-07-05T16:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334693#M29215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0.72/5.10 seems like a small number, do you have the decimals set to 0 may be? Try increasing the number of decimals to see value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 16:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334693#M29215</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334694#M29216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried setting decimal to four places and still getting zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="variable_eval.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/169214_variable_eval.jpg" style="height: 86px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:39:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334694#M29216</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2017-07-05T17:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334695#M29217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Give this a shot&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(&lt;/SPAN&gt;$(vBPHYr2_Var)&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;/$(vBPHYr3)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334695#M29217</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T17:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334696#M29218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still zero.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:43:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334696#M29218</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2017-07-05T17:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334697#M29219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334697#M29219</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T17:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334698#M29220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you go. Note:&amp;nbsp; The sheet called Boxes Per Hour Detail - 3 Years has the straight table I'm referencing for testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:58:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334698#M29220</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2017-07-05T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334699#M29221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;($(vBPHYr2_Var))/($(vBPHYr3))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 18:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334699#M29221</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T18:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with variable evaluation</title>
      <link>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334700#M29222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect; thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 19:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Problem-with-variable-evaluation/m-p/1334700#M29222</guid>
      <dc:creator>mikegrattan</dc:creator>
      <dc:date>2017-07-05T19:19:49Z</dc:date>
    </item>
  </channel>
</rss>

