<?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: Calculate with reference value per dimension - Please HELP! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549433#M480588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashutosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the minimum year is not always 2001, It depends on the selection in the field Year. Like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/49274_Unbenannt.JPG" /&gt;&lt;/P&gt;&lt;P&gt;In that case the minimum year is 2004. I think that the way Gerrit suggested is the right direction to the solution. But I need to do it by concidering the dimension region. So that the result in the fourth column is 11 when the region is Asia and 8 when the region is Europe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what I mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;Theresa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Nov 2013 12:22:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-20T12:22:30Z</dc:date>
    <item>
      <title>Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549427#M480582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an urgent problem. Maybe it's simple but I tried so many things and still have no solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table: It is an example but similar to my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/49256_Unbenannt.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Now I want the refernce value to be calculated in the fourth column. The reference value is always the Sales value for the minimum year per region. This means that for the region Asia the refernce value should be 11, for Europe 8 and for the USA 10. But as you can see these values just appear where the year is similar to the minimum year and otherwise appears a zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to receive the reference value per region? The result should like the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/49258_Unbenannt.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Theresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549427#M480582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549428#M480583</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;You can create the Fourth reference Colunm&amp;nbsp; in the Script also .&lt;/P&gt;&lt;P&gt;Here is the Sample to do so,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt; Load * INLINE [&lt;/P&gt;&lt;P&gt;Regions , Yr , Sales&lt;/P&gt;&lt;P&gt;Asia ,2010,11&lt;/P&gt;&lt;P&gt;Asia ,2011,16&lt;/P&gt;&lt;P&gt;Asia ,2012,20&lt;/P&gt;&lt;P&gt;Europe ,2010,8&lt;/P&gt;&lt;P&gt;Europe ,2011,12&lt;/P&gt;&lt;P&gt;Europe ,2012,11&lt;/P&gt;&lt;P&gt;USA ,2010,10&lt;/P&gt;&lt;P&gt;USA ,2011,15&lt;/P&gt;&lt;P&gt;USA ,2012,20&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join(Test)&lt;/P&gt;&lt;P&gt;LOAD Regions,&lt;/P&gt;&lt;P&gt;&amp;nbsp; min(Yr) as minyear&lt;/P&gt;&lt;P&gt;Resident Test&lt;/P&gt;&lt;P&gt;group by Regions;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;LOAD Regions,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sales,&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(Yr&amp;lt;&amp;gt;minyear,peek(refsales),Sales) as refsales&lt;/P&gt;&lt;P&gt;Resident Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop Table Test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check out if it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravikant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 10:45:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549428#M480583</guid>
      <dc:creator />
      <dc:date>2013-11-20T10:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549429#M480584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ravikant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your answer. I know that this is a solution but I've forgot to say that the mininmum year is a selected value in the dashboard. In my real case i have the years from 2001 up to 2013. And according to the selected Year-Range (2004-2012) is the minimum year 2004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Theresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 11:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549429#M480584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T11:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549430#M480585</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;Try: Sum ({$&amp;lt;Year={2010}&amp;gt;} TOTAL [Sales])&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;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 11:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549430#M480585</guid>
      <dc:creator />
      <dc:date>2013-11-20T11:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549431#M480586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gerrit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried this. But the result is the following:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/49261_Unbenannt.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do that the region will be considered?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;Theresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549431#M480586</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T12:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549432#M480587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you know that what is&amp;nbsp; Minimum year (like 2004) then you can directly&amp;nbsp; use this in straight table expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;=If(Year = 2004,Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; And&amp;nbsp; if it is not helpful then let me clear one thing why are you taking &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;selected Year-Range (2004-2012) if starting year is 2001.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:13:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549432#M480587</guid>
      <dc:creator />
      <dc:date>2013-11-20T12:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549433#M480588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashutosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the minimum year is not always 2001, It depends on the selection in the field Year. Like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Unbenannt.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/49274_Unbenannt.JPG" /&gt;&lt;/P&gt;&lt;P&gt;In that case the minimum year is 2004. I think that the way Gerrit suggested is the right direction to the solution. But I need to do it by concidering the dimension region. So that the result in the fourth column is 11 when the region is Asia and 8 when the region is Europe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know what I mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;Theresa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:22:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549433#M480588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T12:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549434#M480589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes now I understand your problem. Assign this expression in a variable.&lt;/P&gt;&lt;P&gt;let varYear&amp;nbsp;&amp;nbsp;&amp;nbsp; = Min(SubField(GetFieldSelections(Yr), ','));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use my script using this variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=If(Year = $(varYear),Sales)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;or check this attach file.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549434#M480589</guid>
      <dc:creator />
      <dc:date>2013-11-20T12:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549435#M480590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Theresa&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Min(TOTAL &amp;lt;Region&amp;gt; Aggr(Sum(Sales), Region, Year))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assuming your chart dimensions are Region and Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:28:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549435#M480590</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-11-20T12:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate with reference value per dimension - Please HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549436#M480591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank this worked. I'm happy now &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks to all the others who tried to solve my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theresa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 12:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-with-reference-value-per-dimension-Please-HELP/m-p/549436#M480591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T12:36:12Z</dc:date>
    </item>
  </channel>
</rss>

