<?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 Creating a variance flag in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-variance-flag/m-p/203699#M589167</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;I have an example pivot table where i am applying a flag to an account in a summary pivot table.&lt;/P&gt;&lt;P&gt;The flag indicates whether or not the account is over 25k in variance for YTD. I want to be able to utilise a list box, whereby a user can select '25k var' and see all accounts which satisfy this criteria. The problem is, i need the formula to evaluate on an account by account basis rather than at any other level of granularity.&lt;/P&gt;&lt;P&gt;Not sure whether it is a jet lag, but i can't think of a solution to this problem. any ideas?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1854_sourceID:1854" /&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing formula is as follows;&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt;fabs(Sum(if (InYearToDate(TranDate, vMaxDate, 0), (TranAmount * Split)))&lt;BR /&gt;-&lt;BR /&gt;Sum(if (InYearToDate(TranDate, vMaxDate, 0), (BudAmount * BudSplit))))&lt;BR /&gt;&amp;gt;=25000,&lt;BR /&gt;'25k var') &lt;OBJECT classid="CLSID:74DC8438-E36A-40a0-B750-4E2257FA2E41" height="288" id="QlikOCX" width="448"&gt;&lt;PARAM name="DocName" value="C:\Qlikview\Models\Trevor Play\Actual vs Budget 2010_05_18 LIVE_25k VAR.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\CH134" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jun 2010 06:18:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-28T06:18:55Z</dc:date>
    <item>
      <title>Creating a variance flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variance-flag/m-p/203699#M589167</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;I have an example pivot table where i am applying a flag to an account in a summary pivot table.&lt;/P&gt;&lt;P&gt;The flag indicates whether or not the account is over 25k in variance for YTD. I want to be able to utilise a list box, whereby a user can select '25k var' and see all accounts which satisfy this criteria. The problem is, i need the formula to evaluate on an account by account basis rather than at any other level of granularity.&lt;/P&gt;&lt;P&gt;Not sure whether it is a jet lag, but i can't think of a solution to this problem. any ideas?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1854_sourceID:1854" /&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The existing formula is as follows;&lt;/P&gt;&lt;P&gt;if(&lt;BR /&gt;fabs(Sum(if (InYearToDate(TranDate, vMaxDate, 0), (TranAmount * Split)))&lt;BR /&gt;-&lt;BR /&gt;Sum(if (InYearToDate(TranDate, vMaxDate, 0), (BudAmount * BudSplit))))&lt;BR /&gt;&amp;gt;=25000,&lt;BR /&gt;'25k var') &lt;OBJECT classid="CLSID:74DC8438-E36A-40a0-B750-4E2257FA2E41" height="288" id="QlikOCX" width="448"&gt;&lt;PARAM name="DocName" value="C:\Qlikview\Models\Trevor Play\Actual vs Budget 2010_05_18 LIVE_25k VAR.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\CH134" /&gt;&lt;/OBJECT&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 06:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variance-flag/m-p/203699#M589167</guid>
      <dc:creator />
      <dc:date>2010-06-28T06:18:55Z</dc:date>
    </item>
    <item>
      <title>AW:Creating a variance flag</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-variance-flag/m-p/203700#M589168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Matt,&lt;/P&gt;&lt;P&gt;maybe the classfunction helps?&lt;/P&gt;&lt;H4 style="margin:auto 0cm;"&gt;class&lt;A id="class" name="class"&gt;&lt;/A&gt;( &lt;I&gt;expression&lt;/I&gt;, &lt;I&gt;interval [&lt;/I&gt; , &lt;I&gt;label [&lt;/I&gt; , &lt;I&gt;offset ]]&lt;/I&gt; )&lt;/H4&gt;&lt;P&gt;Creates a classification of &lt;I&gt;expressions&lt;/I&gt;. The bin width is determined by the number set as &lt;I&gt;interval&lt;/I&gt;. The result is shown as a&amp;lt;=x&amp;lt;b, where a and b are the upper and lower limits of the bin. The x can be replaced by an arbitrary string stated in &lt;I&gt;label&lt;/I&gt;. 0 is normally the default starting point of the classification. This can be changed by adding an &lt;I&gt;offset&lt;/I&gt;.&lt;/P&gt;&lt;H2 style="margin:auto 0cm;"&gt;Examples:&lt;/H2&gt;&lt;P style="margin-left:27.15pt;"&gt;&lt;B&gt;class&lt;/B&gt;( &lt;I&gt;var&lt;/I&gt;&lt;B&gt;,&lt;/B&gt;&lt;I&gt;10&lt;/I&gt; &lt;B&gt;)&lt;/B&gt; with &lt;I&gt;var&lt;/I&gt; = 23 returns &lt;I&gt;'20&amp;lt;=x&amp;lt;30'&lt;/I&gt;&lt;/P&gt;&lt;P style="margin-left:27.15pt;"&gt;&lt;B&gt;class&lt;/B&gt;( &lt;I&gt;var&lt;/I&gt;&lt;B&gt;,&lt;/B&gt;&lt;I&gt;5&lt;/I&gt;&lt;B&gt;,&lt;/B&gt;&lt;I&gt;'value'&lt;/I&gt; &lt;B&gt;)&lt;/B&gt; with &lt;I&gt;var&lt;/I&gt; = 23 returns &lt;I&gt;'20&amp;lt;= value &amp;lt;25'&lt;/I&gt;&lt;/P&gt;&lt;P style="margin:5pt 0cm 0pt 27.15pt;"&gt;&lt;B&gt;class&lt;/B&gt;( &lt;I&gt;var&lt;/I&gt;&lt;B&gt;,&lt;/B&gt;&lt;I&gt;10&lt;/I&gt;&lt;B&gt;,&lt;/B&gt;&lt;I&gt;'x'&lt;/I&gt;&lt;B&gt;,&lt;/B&gt;&lt;I&gt;5&lt;/I&gt; &lt;B&gt;)&lt;/B&gt; with &lt;I&gt;var&lt;/I&gt; = 23 returns &lt;I&gt;'15&amp;lt;=x&amp;lt;25'&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 08:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-variance-flag/m-p/203700#M589168</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2010-06-28T08:27:00Z</dc:date>
    </item>
  </channel>
</rss>

