<?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 Needed: Calculated Dimension over Calculated Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503074#M187965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thank you. This is what I am looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 09:48:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-21T09:48:36Z</dc:date>
    <item>
      <title>Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503068#M187959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have below as one of my calculated dimensions, but what I would like to do further is to have it calculated over Dim_02 as well (please see attached). However, Dim_02 is another calculated dimension, so whatever I tried have error out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(pick(match(D_COST_MAX,'C1_MAX_IND','C2_MAX_IND','C3_MAX_IND','C4_MAX_IND')&lt;/P&gt;&lt;P&gt;,sum(C1_MAX_IND)&lt;/P&gt;&lt;P&gt;,sum(C2_MAX_IND)&lt;/P&gt;&lt;P&gt;,sum(C3_MAX_IND)&lt;/P&gt;&lt;P&gt;,sum(C4_MAX_IND)&lt;/P&gt;&lt;P&gt;),4,0)&amp;lt;=2,D_COST_MAX),Dim_01, D_COST_MAX)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have tried (or something similar), but proven unsuccessful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(if(rank(pick(match(D_COST_MAX,'C1_MAX_IND','C2_MAX_IND','C3_MAX_IND','C4_MAX_IND')&lt;/P&gt;&lt;P&gt;,sum(C1_MAX_IND)&lt;/P&gt;&lt;P&gt;,sum(C2_MAX_IND)&lt;/P&gt;&lt;P&gt;,sum(C3_MAX_IND)&lt;/P&gt;&lt;P&gt;,sum(C4_MAX_IND)&lt;/P&gt;&lt;P&gt;),4,0)&amp;lt;=2,D_COST_MAX),Dim_01, &lt;SPAN style="color: #ff0000;"&gt;Dim_02&lt;/SPAN&gt;, D_COST_MAX)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 03:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503068#M187959</guid>
      <dc:creator />
      <dc:date>2013-08-20T03:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503069#M187960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please let us know what could be the output you are expecting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 04:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503069#M187960</guid>
      <dc:creator />
      <dc:date>2013-08-20T04:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503070#M187961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to Top 2 Dimension to display top 2 labels whose members are C1_MAX_IND, C2_MAX_IND, ..., C4_MAX_IND based on Dim_01 and Dim_02. Essentially, I am counting the indicators that determine which metrics (i.e. C1, C2, C3 and C4) are maximum when compare on a row level. For example, if C1_MAX_IND = 1, then it means that C1 is maximum on that particular row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, as an example, when I select &lt;STRONG&gt;Dim_01 = D_03&lt;/STRONG&gt; and Dim_02 = "&amp;gt;", we will see that Top 2 are C2_MAX_IND and C3_MAX_IND which is what I want. You will notice that there are 4 of C2_MAX_IND and 2 of C3_MAX_IND. However, if I deselect Dim_02, then the Top 2 dimension does not display desired information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the root of my problem is my Top 2 calculation is based on Dim_01 only, and I cannot seem to figure out how to include Dim_02 into my Top 2 calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure there is a better way of doing this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 06:08:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503070#M187961</guid>
      <dc:creator />
      <dc:date>2013-08-20T06:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503071#M187962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please refer to the attached file.&lt;/P&gt;&lt;P&gt;Instead of trying to go down the "calculated dim over calculated dim" path, I used the calculated expression to show only the top 2 records. I also created an inline table to contain the "&amp;lt;= and &amp;gt;" operators in order to use it within Pivot Table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 08:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503071#M187962</guid>
      <dc:creator />
      <dc:date>2013-08-21T08:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503072#M187963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A quick question though, I don't quite understand why Dim_01 does not display all of its member? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 08:44:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503072#M187963</guid>
      <dc:creator />
      <dc:date>2013-08-21T08:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503073#M187964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is because I left Dim_01 out of the aggregation. I've attached another version for you. Is this what you're expecting to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 09:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503073#M187964</guid>
      <dc:creator />
      <dc:date>2013-08-21T09:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503074#M187965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, thank you. This is what I am looking for. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 09:48:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503074#M187965</guid>
      <dc:creator />
      <dc:date>2013-08-21T09:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503075#M187966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shawn084,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just a quick follow-up question. If I have a long list of variables (i.e. C1_MAX_IND,..., C100_MAX_IND, ....), do you have any suggestion on how to automate this? Just wondering if I can avoid typing very long expression. &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>Mon, 02 Sep 2013 03:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503075#M187966</guid>
      <dc:creator />
      <dc:date>2013-09-02T03:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Help Needed: Calculated Dimension over Calculated Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503076#M187967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally, I would transform the crosstable (from your POC spreadsheet) into a straight table.&lt;/P&gt;&lt;P&gt;That way you would have a new column called (for example) &lt;STRONG&gt;C_MAX_ID&lt;/STRONG&gt;. And the values in this column would contain C1_MAX_IND, C2_MAX_IND, C3_MAX_IND, etc...&lt;/P&gt;&lt;P&gt;At such point, you could edit the set analysis expression to include something like &lt;EM&gt;D_COST_MAX = C_MAX_IND.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This way you wouldn't have to write long expressions to accommodate for every possible C&lt;EM&gt;n&lt;/EM&gt;_MAX_ID columns.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Hope that gives you some idea.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2013 05:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-Needed-Calculated-Dimension-over-Calculated-Dimension/m-p/503076#M187967</guid>
      <dc:creator />
      <dc:date>2013-09-04T05:59:56Z</dc:date>
    </item>
  </channel>
</rss>

