<?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: Referencing other Dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523584#M195640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark, a few ways to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)You need to ue the &amp;lt;total&amp;gt; qualifyer to return the BV for all values of Dim, for every row in custom.&lt;/P&gt;&lt;P&gt;Then add the set analysis to restrict it to "Begin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Dim={"Begin"}&amp;gt;} total BV)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Use the top() function to return a value that as evaluated on the first row of your chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=top(sum(BV) )&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=top([BV]) //(referencing the column itself)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Dec 2013 23:30:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-03T23:30:04Z</dc:date>
    <item>
      <title>Referencing other Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523582#M195638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a chart table that aggregates to the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | BV&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | BY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | custom&lt;/P&gt;&lt;P&gt;Begin&amp;nbsp;&amp;nbsp;&amp;nbsp; | 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 2&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 1.5&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 4.8&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | -10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 3.2&lt;/P&gt;&lt;P&gt;End&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 75&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim is a dimension with those values;&lt;/P&gt;&lt;P&gt;BV is sum(BV)&lt;/P&gt;&lt;P&gt;BY is sum(BY*BV)/sum(BV) **Weighted average aggregation&lt;/P&gt;&lt;P&gt;The custom field requires special logic: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ([Begin BV] * BY / BV)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the calculation in custom for the dim Begin would be: (50 * 2 / 50)&lt;/P&gt;&lt;P&gt;the calculation for dim=1 would be: (50 * 1.5 / 20)&lt;/P&gt;&lt;P&gt;the calculation for dim=2 would be: (50 * 4.8 / 15)&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anytime I try to get some sort of set analysis to grab the 'Begin BV' it only returns it in the dim=Begin, I can't seem to access this data from a different dimension.&amp;nbsp; I've thought of pre-calculating some of these values in the load, but the&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Begin and End are two dates that the User selects at run-time.&amp;nbsp; &lt;/SPAN&gt;Any thoughts/ideas how I can accomplish this calculation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 22:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523582#M195638</guid>
      <dc:creator />
      <dc:date>2013-12-03T22:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing other Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523583#M195639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a TOTAL qualifier to your aggregation function with the set analysis, e.g.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum({&amp;lt;dim={Begin}&amp;gt;} TOTAL BV)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;for the [Begin BV] calculation&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 23:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523583#M195639</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-12-03T23:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing other Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523584#M195640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark, a few ways to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)You need to ue the &amp;lt;total&amp;gt; qualifyer to return the BV for all values of Dim, for every row in custom.&lt;/P&gt;&lt;P&gt;Then add the set analysis to restrict it to "Begin"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Dim={"Begin"}&amp;gt;} total BV)&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Use the top() function to return a value that as evaluated on the first row of your chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=top(sum(BV) )&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;=top([BV]) //(referencing the column itself)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are after?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 23:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523584#M195640</guid>
      <dc:creator />
      <dc:date>2013-12-03T23:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing other Dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523585#M195641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It took me way to long attempting this when it was so simple.&amp;nbsp; thank you so much.&amp;nbsp; I was able to take that concept and extrapolate to my needs.&amp;nbsp; In the interest of cleaning up expressions to make them more readable, are you able to reference other fields in the same chart with this same process?&amp;nbsp; I tried doing sum({&amp;lt;BYA_BUCKET={'End'}&amp;gt;}TOTAL [Book Yield]) where Book Yield is the name of the column which contains a complicated underlying formula.&amp;nbsp; The reason I ask is because the ending expression looks like this and I have some further complications I need to add to the chart.&amp;nbsp; The further complications will be doing a different calculation if at a specific dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//((groups' BY / End BV * groups' BV) - (groups' BV / End BV * Beg BY)) * 100&lt;/P&gt;&lt;P&gt;( (&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum(BOOK_YIELD*BASE_BOOK_VALUE)/sum(BASE_BOOK_VALUE)) &lt;/P&gt;&lt;P&gt;&amp;nbsp; / &lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;BYA_BUCKET={'End'}&amp;gt;}TOTAL BASE_BOOK_VALUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(BASE_BOOK_VALUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp; (&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum(BASE_BOOK_VALUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum({&amp;lt;BYA_BUCKET={'End'}&amp;gt;}TOTAL BASE_BOOK_VALUE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp; (sum({&amp;lt;BYA_BUCKET={'Begin'}&amp;gt;}TOTAL BOOK_YIELD*BASE_BOOK_VALUE)/sum({&amp;lt;BYA_BUCKET={'Begin'}&amp;gt;}TOTAL BASE_BOOK_VALUE))&lt;/P&gt;&lt;P&gt;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;) * 100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 14:13:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-other-Dimensions/m-p/523585#M195641</guid>
      <dc:creator />
      <dc:date>2013-12-04T14:13:59Z</dc:date>
    </item>
  </channel>
</rss>

