<?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: Re: Dynamic target calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623561#M229472</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;Please refer the attached...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When no value is selected for Division, the pivot is not showing the data. But when a value is selected is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is that it should work in both the cases.&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;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Apr 2014 14:18:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-01T14:18:01Z</dc:date>
    <item>
      <title>Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623554#M229465</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 a requirement to calculate the targets for the current year based on last year december actuals. The calculated targets needs to be shown against the current year actuals in a pivot table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a simple set analysis for this and it is not giving me the results I am expecting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the sample QVW with the issue I am having.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623554#M229465</guid>
      <dc:creator />
      <dc:date>2014-03-26T09:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623555#M229466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(TOTAL {&amp;lt;Period = {"Dec-2013"}&amp;gt;}Actuals)-(SUM(TOTAL {&amp;lt;Period = {"Dec-2013"}&amp;gt;}Actuals)*Aggr(Reduction%,Period))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 09:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623555#M229466</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-26T09:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623556#M229467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response. It almost solved my issues but had issues when I added another column Type to both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The target is calculating correctly when I select a value in the Type list box but when no value is selected it is showing blank target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When no Type value is selected, it should pick Dec-2013 value for Type A and apply Type A reduction % + pick Dec-2013 value for Type B and apply Type B reduction %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the sample QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you pelase help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623556#M229467</guid>
      <dc:creator />
      <dc:date>2014-03-26T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623557#M229468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: previous reply and file both wrong...&lt;/P&gt;&lt;P&gt;change your expression as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM(TOTAL &amp;lt;Type&amp;gt;{&amp;lt;Period = {"Dec-2013"}&amp;gt;}Actuals)--(SUM(TOTAL {&amp;lt;Period = {"Dec-2013"}&amp;gt;}Actuals)*Aggr(Reduction%,Period,Type))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623557#M229468</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-26T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623558#M229469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;The issue is, I can't have Type added as a dimension in my Pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to achieve this without adding 'Type' as a dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623558#M229469</guid>
      <dc:creator />
      <dc:date>2014-03-26T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623559#M229470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change expression as below.... and remove Type from dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(GetSelectedCount(Type) = 0,SUM(TOTAL {&amp;lt;Period = {"Dec-2013"}, Type = {'A'}&amp;gt;}Actuals)-SUM(TOTAL {&amp;lt;Period = {"Dec-2013"}, Type = {'A'}&amp;gt;}Actuals)*Only({&amp;lt;Type = {'A'}&amp;gt;}Reduction%),&lt;/P&gt;&lt;P&gt;SUM(TOTAL {&amp;lt;Period = {"Dec-2013"}&amp;gt;}Actuals)-SUM(TOTAL {&amp;lt;Period = {"Dec-2013"}&amp;gt;}Actuals)*Reduction%)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623559#M229470</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-26T11:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623560#M229471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below are the issues I am facing with this approach...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. We might have more than 2 distinct values under the field 'Type'.&lt;/P&gt;&lt;P&gt;2. Even when we have only 2 distinct values, when I use this expression with real data I have in my production version (around 15 million rows), the performance is not good.&lt;/P&gt;&lt;P&gt;3. I tried to calculate this during script time, but the actuals change when user apply filters on the dashboard and hence I need this target calculation to be dynamic.&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, 26 Mar 2014 12:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623560#M229471</guid>
      <dc:creator />
      <dc:date>2014-03-26T12:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Dynamic target calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623561#M229472</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;Please refer the attached...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When no value is selected for Division, the pivot is not showing the data. But when a value is selected is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The requirement is that it should work in both the cases.&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;Regards,&lt;/P&gt;&lt;P&gt;Murali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Apr 2014 14:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-target-calculation/m-p/623561#M229472</guid>
      <dc:creator />
      <dc:date>2014-04-01T14:18:01Z</dc:date>
    </item>
  </channel>
</rss>

