<?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: Help with calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809819#M534636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your Dim can just aggr() over [Gifts Id}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;= aggr( &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; if (&amp;nbsp; max([Gift FY])=$(vFiscalYearCurrent), 'Current',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])=$(vFiscalYearCurrent)-1) and (Min([Gift FY])=$(vFiscalYearCurrent)-1), 'LYBNT-1st Time',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])=$(vFiscalYearCurrent)-1) and (Min([Gift FY])&amp;lt;$(vFiscalYearCurrent)-1), 'LYBNT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])&amp;gt;=$(vFiscalYearCurrent)-6) AND (max([Gift FY])&amp;lt;=$(vFiscalYearCurrent)-2), 'SYBNT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])&amp;lt;$(vFiscalYearCurrent)-6), 'Lapsed Donor', 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; )))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;,[Gifts Id]&amp;nbsp; )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Feb 2015 20:53:24 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2015-02-02T20:53:24Z</dc:date>
    <item>
      <title>Help with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809816#M534632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone, &lt;/P&gt;&lt;P&gt; - I want to use a calculated dimension... and show counts.&amp;nbsp; Attached is a sample...if I export to MS Excel and add a pivot table, I can see this:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/76918_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt; by setting MS Excel to this: &lt;IMG class="jive-image image-2" height="114" src="https://community.qlik.com/legacyfs/online/76919_pastedImage_1.png" style="width: 150px; height: 113.297872340426px;" width="150" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this in Qlikview? &lt;/P&gt;&lt;P&gt;- I don't want to do it in a LOAD statement, because I want users to be able to select dimensions, and the chart/table calculates the values per user selections [Note:&amp;nbsp; I did not include dimensions in the sample].... &lt;/P&gt;&lt;P&gt;- Do I use Aggr()?&amp;nbsp;&amp;nbsp; I've tried this in an expression [per the formula, aggr(expression, dimensions) ]...but not sure, then what dimension to use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= aggr( COUNT([Gifts Id]), &lt;/P&gt;&lt;P&gt;&amp;nbsp; if (&amp;nbsp; max([Gift FY])=$(vFiscalYearCurrent), 'Current', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])=$(vFiscalYearCurrent)-1) and (Min([Gift FY])=$(vFiscalYearCurrent)-1), 'LYBNT-1st Time',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])=$(vFiscalYearCurrent)-1) and (Min([Gift FY])&amp;lt;$(vFiscalYearCurrent)-1), 'LYBNT',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])&amp;gt;=$(vFiscalYearCurrent)-6) AND (max([Gift FY])&amp;lt;=$(vFiscalYearCurrent)-2), 'SYBNT',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])&amp;lt;$(vFiscalYearCurrent)-6), 'Lapsed Donor', 0&lt;/P&gt;&lt;P&gt;&amp;nbsp; )))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LYBNT = A Donor who gave (L)ast (Y)ear (B)ut (N)ot (T)his year... &lt;/P&gt;&lt;P&gt;SYBNT &lt;SPAN style="font-size: 13.3333330154419px;"&gt; = A Donor who gave (S)ome (Y)ear (B)ut (N)ot (T)his year...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be most appreciated...&lt;/P&gt;&lt;P&gt;Jarrell&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 19:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809816#M534632</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2015-02-02T19:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809817#M534633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can use ValueList() for calculated dimension.&amp;nbsp; I'm attaching an example that shows how to use ValueList().&amp;nbsp; You'll have to replace 1,2,3,4,5 with the appropriate calculations.&amp;nbsp; I assume they will be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct if(&amp;lt;some conditions&amp;gt;, "Gifts Id"))&lt;/P&gt;&lt;P&gt;You probably need to aggr by Donor in the "some conditions" part...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 19:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809817#M534633</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-02T19:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809818#M534634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.. but I'm not sure what aggr() to use... hence, my question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 20:22:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809818#M534634</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2015-02-02T20:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809819#M534636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your Dim can just aggr() over [Gifts Id}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;= aggr( &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; if (&amp;nbsp; max([Gift FY])=$(vFiscalYearCurrent), 'Current',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])=$(vFiscalYearCurrent)-1) and (Min([Gift FY])=$(vFiscalYearCurrent)-1), 'LYBNT-1st Time',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])=$(vFiscalYearCurrent)-1) and (Min([Gift FY])&amp;lt;$(vFiscalYearCurrent)-1), 'LYBNT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])&amp;gt;=$(vFiscalYearCurrent)-6) AND (max([Gift FY])&amp;lt;=$(vFiscalYearCurrent)-2), 'SYBNT',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ( (max([Gift FY])&amp;lt;$(vFiscalYearCurrent)-6), 'Lapsed Donor', 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&amp;nbsp; )))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;,[Gifts Id]&amp;nbsp; )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com/" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com/" rel="nofollow"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 20:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809819#M534636</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2015-02-02T20:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809820#M534637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, &lt;/P&gt;&lt;P&gt; Hey, thanks, that worked... I thought I tried that... but either left a count() in, or had a syntax error... &lt;/P&gt;&lt;P&gt; So, thanks, &lt;/P&gt;&lt;P&gt; Jarrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 21:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-calculated-dimension/m-p/809820#M534637</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2015-02-02T21:26:31Z</dc:date>
    </item>
  </channel>
</rss>

