<?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 Calculated Dimension Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Help/m-p/613042#M477425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field called LOANDATASOURCE that specifies whether loan data comes from one of 3 databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One loan data source (FICS) houses all loans regardless of whether we consider them open or not. We determine an open loan by Investor Bank Code, Investor Code and Balance &amp;gt; 0.&amp;nbsp; The other 2 sources only have open loans.&amp;nbsp; We also have a map that corresponds the loan type to specific categories; FICS is always type 500 = 1st Mortgage Category, the other data sources also have types of First Mortgage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to use a calculated dimension for [LOAN CATEGORY] that only counts FICS loans if Investor Bank Code = 001 and Investor Code = 001 and Balance&amp;nbsp; &amp;gt; 0 so that my 1st mortgage balances in the chart are accurate.&amp;nbsp; Does anybody have an idea of how to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this:&lt;/P&gt;&lt;P&gt;=if(LOANDATASOURCE = 'FICS' and FICSINVBANKCD = 001 and FICSINVCD = 001 and BALANCE &amp;gt; 0, 'FICS 1st Mtg', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(LOANDATASOURCE = 'SYMITAR' and LOANTYPEDESCRIPTION &amp;lt;&amp;gt;'FICS Mortgage', [LOAN CATEGORY CALL REPORT],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [LOAN CATEGORY CALL REPORT]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this:&lt;/P&gt;&lt;P&gt;=IF({&amp;lt;FICSINVBANKCD = {001}, FICSINVCD = {001}&amp;gt;}[LOAN CATEGORY CALL REPORT] = 'FICS Mtg.', [LOAN CATEGORY CALL REPORT])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2014 20:35:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-23T20:35:03Z</dc:date>
    <item>
      <title>Calculated Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Help/m-p/613042#M477425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a field called LOANDATASOURCE that specifies whether loan data comes from one of 3 databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One loan data source (FICS) houses all loans regardless of whether we consider them open or not. We determine an open loan by Investor Bank Code, Investor Code and Balance &amp;gt; 0.&amp;nbsp; The other 2 sources only have open loans.&amp;nbsp; We also have a map that corresponds the loan type to specific categories; FICS is always type 500 = 1st Mortgage Category, the other data sources also have types of First Mortgage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is to use a calculated dimension for [LOAN CATEGORY] that only counts FICS loans if Investor Bank Code = 001 and Investor Code = 001 and Balance&amp;nbsp; &amp;gt; 0 so that my 1st mortgage balances in the chart are accurate.&amp;nbsp; Does anybody have an idea of how to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this:&lt;/P&gt;&lt;P&gt;=if(LOANDATASOURCE = 'FICS' and FICSINVBANKCD = 001 and FICSINVCD = 001 and BALANCE &amp;gt; 0, 'FICS 1st Mtg', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(LOANDATASOURCE = 'SYMITAR' and LOANTYPEDESCRIPTION &amp;lt;&amp;gt;'FICS Mortgage', [LOAN CATEGORY CALL REPORT],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [LOAN CATEGORY CALL REPORT]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this:&lt;/P&gt;&lt;P&gt;=IF({&amp;lt;FICSINVBANKCD = {001}, FICSINVCD = {001}&amp;gt;}[LOAN CATEGORY CALL REPORT] = 'FICS Mtg.', [LOAN CATEGORY CALL REPORT])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 20:35:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Help/m-p/613042#M477425</guid>
      <dc:creator />
      <dc:date>2014-04-23T20:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Dimension Help</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Help/m-p/613043#M477426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is supposed to be a dimension in a chart, then i think you need to aggregate it...something like&lt;/P&gt;&lt;P&gt;=aggr(/*your if statement*/, [LOAN CATEGORY CALL REPORT])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be you have already ruled against it but i would look into creating a new field in script based on the conditions and use that field as dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2014 20:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Dimension-Help/m-p/613043#M477426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-23T20:45:24Z</dc:date>
    </item>
  </channel>
</rss>

