<?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 Reference the chart dimension in an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725686#M260249</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 have two tables, Account &amp;amp; Sales linked by AccountNumber:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Account:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date,Year,AccountNumber,AdjustmentType,Adjustment&lt;/P&gt;&lt;P&gt;2013-04-13,2013,100,Disc,15&lt;/P&gt;&lt;P&gt;2013-05-23,2013,104,Adv,35&lt;/P&gt;&lt;P&gt;2013-09-04,2013,107,Disc,18&lt;/P&gt;&lt;P&gt;2014-02-14,2014,100,Adv,30&lt;/P&gt;&lt;P&gt;2014-07-18,2014,104,Disc,15&lt;/P&gt;&lt;P&gt;2014-08-07,2014,107,Disc,15&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;SalesDate,SalesYear,AccountNumber,SalesPersonID,Value&lt;/P&gt;&lt;P&gt;2013-04-13,2013,100,09,100&lt;/P&gt;&lt;P&gt;2013-05-23,2013,104,09,85&lt;/P&gt;&lt;P&gt;2013-09-04,2013,107,14,35&lt;/P&gt;&lt;P&gt;2014-02-14,2014,100,09,40&lt;/P&gt;&lt;P&gt;2014-07-18,2014,104,09,25&lt;/P&gt;&lt;P&gt;2014-08-07,2014,107,14,75&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Straight Table is listing Adjustment sums by Year, and i want the Sales Value by the Year as well.&lt;/P&gt;&lt;P&gt;I know I can change the linking field to be AccountNumber &amp;amp; Year (AccountNumber &amp;amp; SalesYear in Sales), but for other reasons I want this to remain only by AccountNumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to reference the Dimension value in the expression for Value, i.e. SalesYear = Year.&lt;/P&gt;&lt;P&gt;I know i can manually evaluate each Year value against the SalesYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(only(Year) = 2013, sum({&amp;lt;SalesYear = {2013}&amp;gt;}Value),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(only(Year) = 2014, sum({&amp;lt;SalesYear = {2014}&amp;gt;}Value),sum(total Value)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'd like the expression a bit more dynamic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Sep 2014 18:40:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-09-07T18:40:49Z</dc:date>
    <item>
      <title>Reference the chart dimension in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725686#M260249</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 have two tables, Account &amp;amp; Sales linked by AccountNumber:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Account:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date,Year,AccountNumber,AdjustmentType,Adjustment&lt;/P&gt;&lt;P&gt;2013-04-13,2013,100,Disc,15&lt;/P&gt;&lt;P&gt;2013-05-23,2013,104,Adv,35&lt;/P&gt;&lt;P&gt;2013-09-04,2013,107,Disc,18&lt;/P&gt;&lt;P&gt;2014-02-14,2014,100,Adv,30&lt;/P&gt;&lt;P&gt;2014-07-18,2014,104,Disc,15&lt;/P&gt;&lt;P&gt;2014-08-07,2014,107,Disc,15&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;SalesDate,SalesYear,AccountNumber,SalesPersonID,Value&lt;/P&gt;&lt;P&gt;2013-04-13,2013,100,09,100&lt;/P&gt;&lt;P&gt;2013-05-23,2013,104,09,85&lt;/P&gt;&lt;P&gt;2013-09-04,2013,107,14,35&lt;/P&gt;&lt;P&gt;2014-02-14,2014,100,09,40&lt;/P&gt;&lt;P&gt;2014-07-18,2014,104,09,25&lt;/P&gt;&lt;P&gt;2014-08-07,2014,107,14,75&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Straight Table is listing Adjustment sums by Year, and i want the Sales Value by the Year as well.&lt;/P&gt;&lt;P&gt;I know I can change the linking field to be AccountNumber &amp;amp; Year (AccountNumber &amp;amp; SalesYear in Sales), but for other reasons I want this to remain only by AccountNumber.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to reference the Dimension value in the expression for Value, i.e. SalesYear = Year.&lt;/P&gt;&lt;P&gt;I know i can manually evaluate each Year value against the SalesYear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(only(Year) = 2013, sum({&amp;lt;SalesYear = {2013}&amp;gt;}Value),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(only(Year) = 2014, sum({&amp;lt;SalesYear = {2014}&amp;gt;}Value),sum(total Value)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'd like the expression a bit more dynamic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 18:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725686#M260249</guid>
      <dc:creator />
      <dc:date>2014-09-07T18:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the chart dimension in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725687#M260250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load the tables using the script below and then create your charts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Account:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date,Year,AccountNumber,AdjustmentType,Adjustment&lt;/P&gt;&lt;P&gt;2013-04-13,2013,100,Disc,15&lt;/P&gt;&lt;P&gt;2013-05-23,2013,104,Adv,35&lt;/P&gt;&lt;P&gt;2013-09-04,2013,107,Disc,18&lt;/P&gt;&lt;P&gt;2014-02-14,2014,100,Adv,30&lt;/P&gt;&lt;P&gt;2014-07-18,2014,104,Disc,15&lt;/P&gt;&lt;P&gt;2014-08-07,2014,107,Disc,15&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Concatenate (Account) &lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date,Year,AccountNumber,SalesPersonID,Value&lt;/P&gt;&lt;P&gt;2013-04-13,2013,100,09,100&lt;/P&gt;&lt;P&gt;2013-05-23,2013,104,09,85&lt;/P&gt;&lt;P&gt;2013-09-04,2013,107,14,35&lt;/P&gt;&lt;P&gt;2014-02-14,2014,100,09,40&lt;/P&gt;&lt;P&gt;2014-07-18,2014,104,09,25&lt;/P&gt;&lt;P&gt;2014-08-07,2014,107,14,75&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 19:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725687#M260250</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-09-07T19:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the chart dimension in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725688#M260251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nagaian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The example i provided was simplified, but i also need to be able to chart Account Table fields by Sales fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ex Sum(Adjustment) by SalesPersonID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table is concatenated, the &lt;SPAN style="font-size: 13.3333339691162px;"&gt;SalesPersonID&lt;/SPAN&gt; will only apply to the Sales rows, so i can't get the result i need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still need the Sales Fields linked to Account by AccountNumber.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 19:28:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725688#M260251</guid>
      <dc:creator />
      <dc:date>2014-09-07T19:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the chart dimension in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725689#M260252</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 advise to reconsider your restrictions regarding your link field. Using a combined Link ID would enable you to create a seperate calendar table with canonical dates. You then could create your specified charts without any fancy expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66182" alt="QlikCommunity_Thread_132234_Pic4.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66182_QlikCommunity_Thread_132234_Pic4.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66178" alt="QlikCommunity_Thread_132234_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66178_QlikCommunity_Thread_132234_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66179" alt="QlikCommunity_Thread_132234_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66179_QlikCommunity_Thread_132234_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_132234_Pic6.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66183_QlikCommunity_Thread_132234_Pic6.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="66181" alt="QlikCommunity_Thread_132234_Pic5.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/66181_QlikCommunity_Thread_132234_Pic5.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14101226045369450" jivemacro_uid="_14101226045369450"&gt;
&lt;P&gt;Account:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumberHash128(AccountNumber, AccountDate) as %AccountDateID&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;AccountDate,AccountYear,AccountNumber,AdjustmentType,Adjustment&lt;/P&gt;
&lt;P&gt;2013-04-13,2013,100,Disc,15&lt;/P&gt;
&lt;P&gt;2013-05-23,2013,104,Adv,35&lt;/P&gt;
&lt;P&gt;2013-09-04,2013,107,Disc,18&lt;/P&gt;
&lt;P&gt;2014-02-14,2014,100,Adv,30&lt;/P&gt;
&lt;P&gt;2014-07-18,2014,104,Disc,15&lt;/P&gt;
&lt;P&gt;2014-08-07,2014,107,Disc,15&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Sales:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumberHash128(AccountNumber, SalesDate) as %AccountDateID&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;SalesDate,SalesYear,AccountNumber,SalesPersonID,Value&lt;/P&gt;
&lt;P&gt;2013-04-13,2013,100,09,100&lt;/P&gt;
&lt;P&gt;2013-05-23,2013,104,09,85&lt;/P&gt;
&lt;P&gt;2013-09-04,2013,107,14,35&lt;/P&gt;
&lt;P&gt;2014-02-14,2014,100,09,40&lt;/P&gt;
&lt;P&gt;2014-07-18,2014,104,09,25&lt;/P&gt;
&lt;P&gt;2014-08-07,2014,107,14,75&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabLink:&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; %AccountDateID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AccountNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AccountDate as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'AccountDate' as DateType&lt;/P&gt;
&lt;P&gt;Resident Account;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; %AccountDateID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; AccountNumber,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; SalesDate as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'SalesDate' as DateType&lt;/P&gt;
&lt;P&gt;Resident Sales;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Field AccountNumber From Account, Sales;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;tabCalendar:&lt;/P&gt;
&lt;P&gt;LOAD Distinct&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Day(Date) as Day,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WeekDay(Date) as WeekDay,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WeekName(Date) as WeekName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Week(Date) as Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WeekYear(Date) as WeekYear,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MonthName(Date) as MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Month(Date) as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; QuarterName(Date) as QuarterName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dual('Q'&amp;amp;(Month(QuarterStart(Date))+2)/3, Month(QuarterStart(Date))) as Quarter,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Year(Date) as Year&lt;/P&gt;
&lt;P&gt;Resident tabLink;&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 20:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725689#M260252</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-07T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reference the chart dimension in an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725690#M260253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Marco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized i set the dates in both tables the same, the Sales Table should have different dates, which would negate the link by Account Number and Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Account:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date,Year,AccountNumber,AdjustmentType,Adjustment&lt;/P&gt;&lt;P&gt;2013-04-13,2013,100,Disc,15&lt;/P&gt;&lt;P&gt;2013-05-23,2013,104,Adv,35&lt;/P&gt;&lt;P&gt;2013-09-04,2013,107,Disc,18&lt;/P&gt;&lt;P&gt;2014-02-14,2014,100,Adv,30&lt;/P&gt;&lt;P&gt;2014-07-18,2014,104,Disc,15&lt;/P&gt;&lt;P&gt;2014-08-07,2014,107,Disc,15&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;SalesDate,SalesYear,AccountNumber,SalesPersonID,Value&lt;/P&gt;&lt;P&gt;2013-04-17,2013,100,09,100&lt;/P&gt;&lt;P&gt;2013-06-18,2013,104,09,85&lt;/P&gt;&lt;P&gt;2013-09-29,2013,107,14,35&lt;/P&gt;&lt;P&gt;2014-04-02,2014,100,09,40&lt;/P&gt;&lt;P&gt;2014-08-11,2014,104,09,25&lt;/P&gt;&lt;P&gt;2014-10-13,2014,107,14,75&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas with this revised data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 21:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-the-chart-dimension-in-an-expression/m-p/725690#M260253</guid>
      <dc:creator />
      <dc:date>2014-09-07T21:09:55Z</dc:date>
    </item>
  </channel>
</rss>

