<?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 Get Current Dimension Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Current-Dimension-Value/m-p/221933#M74687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to figure out how to display a value that accumulates in a chart regardless of the selection. My table looks like this&lt;/P&gt;&lt;P&gt;Date Value&lt;/P&gt;&lt;P&gt;01/01/2000,5&lt;/P&gt;&lt;P&gt;01/01/2001,5&lt;/P&gt;&lt;P&gt;01/01/2002,2&lt;/P&gt;&lt;P&gt;01/01/2003,7&lt;/P&gt;&lt;P&gt;01/01/2004,9&lt;/P&gt;&lt;P&gt;01/01/2005,8&lt;/P&gt;&lt;P&gt;01/01/2006,6&lt;/P&gt;&lt;P&gt;01/01/2007,5&lt;/P&gt;&lt;P&gt;01/01/2008,1&lt;/P&gt;&lt;P&gt;01/01/2009,3&lt;/P&gt;&lt;P&gt;01/01/2010,4&lt;/P&gt;&lt;P&gt;01/01/2000,5&lt;/P&gt;&lt;P&gt;When I have not selected any date ranges, the Full Accumulation option works fine. But once I select a date range, the accumulation only works from the first value in the selections. I need the value of the accumulation to stay the same, I am just looking for the chart to show a smaller subset of the range. I was thinking I could use set analysis with something like sum(&amp;lt;$[Date] = {"&amp;lt;=&lt;I&gt;CurrentDimensionValue&lt;/I&gt;"}&amp;gt;), but I'm not sure how to retrive the &lt;I&gt;CurrentDimensionValue&lt;B&gt;.&lt;/B&gt;&lt;/I&gt; Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lucas Blancher&lt;/P&gt;&lt;P&gt;BizXcel Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2010 21:58:32 GMT</pubDate>
    <dc:creator>lblancher</dc:creator>
    <dc:date>2010-01-25T21:58:32Z</dc:date>
    <item>
      <title>Get Current Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Current-Dimension-Value/m-p/221933#M74687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to figure out how to display a value that accumulates in a chart regardless of the selection. My table looks like this&lt;/P&gt;&lt;P&gt;Date Value&lt;/P&gt;&lt;P&gt;01/01/2000,5&lt;/P&gt;&lt;P&gt;01/01/2001,5&lt;/P&gt;&lt;P&gt;01/01/2002,2&lt;/P&gt;&lt;P&gt;01/01/2003,7&lt;/P&gt;&lt;P&gt;01/01/2004,9&lt;/P&gt;&lt;P&gt;01/01/2005,8&lt;/P&gt;&lt;P&gt;01/01/2006,6&lt;/P&gt;&lt;P&gt;01/01/2007,5&lt;/P&gt;&lt;P&gt;01/01/2008,1&lt;/P&gt;&lt;P&gt;01/01/2009,3&lt;/P&gt;&lt;P&gt;01/01/2010,4&lt;/P&gt;&lt;P&gt;01/01/2000,5&lt;/P&gt;&lt;P&gt;When I have not selected any date ranges, the Full Accumulation option works fine. But once I select a date range, the accumulation only works from the first value in the selections. I need the value of the accumulation to stay the same, I am just looking for the chart to show a smaller subset of the range. I was thinking I could use set analysis with something like sum(&amp;lt;$[Date] = {"&amp;lt;=&lt;I&gt;CurrentDimensionValue&lt;/I&gt;"}&amp;gt;), but I'm not sure how to retrive the &lt;I&gt;CurrentDimensionValue&lt;B&gt;.&lt;/B&gt;&lt;/I&gt; Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lucas Blancher&lt;/P&gt;&lt;P&gt;BizXcel Inc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 21:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Current-Dimension-Value/m-p/221933#M74687</guid>
      <dc:creator>lblancher</dc:creator>
      <dc:date>2010-01-25T21:58:32Z</dc:date>
    </item>
    <item>
      <title>Get Current Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Current-Dimension-Value/m-p/221934#M74688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no way to reference the current dimension value in set analysis. In fact, the set is only calculated once, and for the entire chart.&lt;/P&gt;&lt;P&gt;Attached is what I consider to be a &lt;I&gt;bad&lt;/I&gt; solution, but that may be better than &lt;I&gt;no&lt;/I&gt; solution. Make a date island - the same dates, but disconnected from your data model. Use THAT date as the dimension. Then use an expression like sum(if("Date"&amp;lt;="Other Date",Value)). The big problem here is inefficiency. No problem for a sample like this, but could get ugly for a large data set. Another problem is usability, where selections in the chart aren't selecting the real data field, and vice versa. In the attached example, I try to address this a bit through conditional set analysis in the chart:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(getselectedcount("Date")&lt;BR /&gt; ,sum({&amp;lt;"Other Date"="Date","Date"=&amp;gt;} if("Date"&amp;lt;="Other Date","Value"))&lt;BR /&gt; ,sum( if("Date"&amp;lt;="Other Date","Value")))&lt;/P&gt;&lt;P&gt;But selecting dates in the chart still won't affect OTHER charts, and things can still get a little funny. Another approach would be to ONLY let them select "Other Date", and do ALL of your connections via set analysis or IFs, but that can be a big maintenance headache.&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have a better solution. I've tried half-heartedly in the past, and not succeeded. I say half-heartedly because I've never needed to do this for my own applications. It's just the kind of thing that should have a clean, simple and efficient solution, so I occasionally poke at it.&lt;/P&gt;&lt;P&gt;Hopefully someone else knows a good solution. I'd love to see it, even if it makes me feel stupid when I see how simple it is. &lt;IMG alt="Wink" src="http://community.qlik.com/emoticons/emotion-5.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jan 2010 01:27:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Current-Dimension-Value/m-p/221934#M74688</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-01-26T01:27:56Z</dc:date>
    </item>
    <item>
      <title>Get Current Dimension Value</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Current-Dimension-Value/m-p/221935#M74689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear John,&lt;/P&gt;&lt;P&gt;I have a chart. It has an expression with a 'year-week' field used in a set analysis to calculate the previous year-week values. Do i understand you correctly that QlikView doesnt allow this field 'year-week' to be used in the dimension of this very same chart?&lt;/P&gt;&lt;P&gt;If so, this would solve my following topic:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/p/25197/96182.aspx#96182"&gt;http://community.qlik.com/forums/p/25197/96182.aspx#96182&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'd really like you to reply... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 22:39:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Current-Dimension-Value/m-p/221935#M74689</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2010-02-02T22:39:01Z</dc:date>
    </item>
  </channel>
</rss>

