<?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: Planvalues in a Pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88392#M14457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, they are two very different things &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 11:58:35 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-08-02T11:58:35Z</dc:date>
    <item>
      <title>Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88386#M14451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;Hello, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;I have an expression &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt;) &amp;gt; (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon;"&gt;StartMonat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt; +2), (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon;"&gt;[Wert PE Plan]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt;) / (12 - (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon;"&gt;StartMonat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt; +2))) * (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: blue;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt;) - (&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: maroon;"&gt;StartMonat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8.0pt; font-family: 'Verdana','sans-serif'; mso-bidi-font-family: Arial; color: black;"&gt; +2)), 0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;When i combine this expression with customerid it works fine because every customer has it‘s own startmonth and planvalue. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;When I combine it with salesdistrictgroup and salesdistrictid it doesn‘t work because a salesdistrictgroup and / or salesdistrictid has more then one startmonth and planvalue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;a salesdistrictgroup can have more then one salesdistrictid. And one salesdistrictid can have more then one customerid. Customerid is the lowest level.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;The if-statement is needed because planvalues are only activated two months after startmonth. For example: when startmonth is january and max-month is february the planvalue to be calculated is 0, when max-month is april the planvalue which should be taken is the planvalue belonging to April and belonging with that &lt;SPAN style="font-family: verdana;"&gt;salesdistrictgroup / salesdistrictid / &lt;/SPAN&gt;customer. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;With mine Expression the values when calculated are not correct (see tablebox)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;An other problem can be that startmonth is 0. When startmonth is = 0 then the customes has no priceincreases. otherwise proceincreases starts 2 month after the startmonth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;I want to build this expression into a pivottable with dimensions salesdistrictgroup and salesdistrictid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;I hope someone can solve the problem (if it can besolved) and can give me the right expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;For testing I have added a little qvw with a pivot table and a table box&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;Thands in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 8.0pt; font-family: 'Verdana','sans-serif';"&gt;regards Court&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 12:43:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88386#M14451</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2018-07-31T12:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88387#M14452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not entirely sure what you might need... but see if this works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum(Aggr(If(Max(Month) &amp;gt; (StartMonat+2), (Sum(PePlan) / (12 - (StartMonat +2))) * (Max(Month) - (StartMonat +2)), 0), AX_SalesDistrictGroup, AX_SalesDistrictID, AX_CustomerID))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 12:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88387#M14452</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-07-31T12:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88388#M14453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks I will check it,&lt;/P&gt;&lt;P&gt;I'll come back with the results&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Court&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 13:07:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88388#M14453</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2018-07-31T13:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88389#M14454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked your Aggr-function: it works !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wished my knowledge about Set Analysis was so good as yours.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 07:32:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88389#M14454</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2018-08-01T07:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88390#M14455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I used is not set analysis, but Aggr() function... read more on this topic here&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.analyticsvidhya.com/blog/2014/02/aggr/" title="https://www.analyticsvidhya.com/blog/2014/02/aggr/"&gt;https://www.analyticsvidhya.com/blog/2014/02/aggr/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 11:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88390#M14455</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-01T11:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88391#M14456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will read the document about Aggr() function.&lt;/P&gt;&lt;P&gt;I thought the Aggr-function was part of Set Analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 11:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88391#M14456</guid>
      <dc:creator>pacoli2013</dc:creator>
      <dc:date>2018-08-02T11:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88392#M14457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, they are two very different things &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 11:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88392#M14457</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-08-02T11:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Planvalues in a Pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88393#M14458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be you can use like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum(Aggr(sum({$&amp;lt;Field1={'3'},Field2={'AP'},Date={"Max(Date)"}&amp;gt;}Total), $(vDIM)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 14:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Planvalues-in-a-Pivot-table/m-p/88393#M14458</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-02T14:34:27Z</dc:date>
    </item>
  </channel>
</rss>

