<?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: Conditional addition within Pivot in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245589#M395053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think I understand still. Would you be able to provide the numbers you expect to see when 27.12 is selected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2016 12:28:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-12-29T12:28:55Z</dc:date>
    <item>
      <title>Conditional addition within Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245586#M395050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm pretty new to qlik and now I have a problem that despite all my efforts I can't get solved without your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the description:&lt;/P&gt;&lt;P&gt;1. Users can enter the number of days they want to see. &lt;SPAN class="short_text" lang="en"&gt;This creates the time period within the variable &lt;EM&gt;vZeitraumSelektion&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Under certain conditions, the results must be multiplied by 2&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/147841_pastedImage_8.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this is my expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vZeitraumSelektion)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, Usage_Flag={'presented_gib'}&amp;gt;} Wert)&lt;BR /&gt; + sum({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vZeitraumSelektion)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;BR /&gt; aggr({&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vZeitraumSelektion)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;}&lt;BR /&gt; if(right(pool,1)='M' and env&amp;lt;&amp;gt;'EMC' and env&amp;lt;&amp;gt;'PKK',&lt;BR /&gt; sum({$&amp;lt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vZeitraumSelektion)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, Usage_Flag={'presented_gib'}&amp;gt;} Wert),&lt;BR /&gt; 0),&lt;BR /&gt; lun, pool, env, Kunde, Datum)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. This works fine, until there is a filter on the date, In this case, only the last day will be calculated.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/147840_pastedImage_7.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intention is to calculate all days (&lt;EM&gt;vZeitraumSelektion&lt;/EM&gt;) up to the max selekted date. What am I doing wrong here?&lt;/P&gt;&lt;P&gt;Just in case, the qvw is attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance for every hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 15:52:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245586#M395050</guid>
      <dc:creator />
      <dc:date>2016-12-28T15:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional addition within Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245587#M395051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking to get this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/147851_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2016 16:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245587#M395051</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-28T16:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional addition within Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245588#M395052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. The idea is, to show a certain amount of days up to a specific date. If for example the 27.12. is selected and the variable &lt;EM&gt;vZeitraumSelektion&lt;/EM&gt; is equal 7, then 7 days until 27.12. are displayed.&lt;/P&gt;&lt;P&gt;The problem in this case is the calculation in Presented (GiB). It is only working for the first day. Every following day don't get the additional counts, they should have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, the &lt;STRONG&gt;counts&lt;/STRONG&gt; should look like the first screen shot when the 28. is selected. Hope this makes sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 08:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245588#M395052</guid>
      <dc:creator />
      <dc:date>2016-12-29T08:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional addition within Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245589#M395053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think I understand still. Would you be able to provide the numbers you expect to see when 27.12 is selected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 12:28:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245589#M395053</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-29T12:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional addition within Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245590#M395054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the Filter in "Datum" should not be done?&lt;/P&gt;&lt;P&gt;Have a look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/de-DE/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="https://help.qlik.com/de-DE/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;https://help.qlik.com/de-DE/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;soll der Filter im Datum ignoriert werden?&lt;/P&gt;&lt;P&gt;Dann schau mal hier: &lt;A href="https://help.qlik.com/de-DE/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="https://help.qlik.com/de-DE/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;https://help.qlik.com/de-DE/qlikview/12.0/Subsystems/Client/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vielleicht bringt dich das in die richtige Richtung!&lt;/P&gt;&lt;P&gt;SG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 12:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245590#M395054</guid>
      <dc:creator>mikefromoke</dc:creator>
      <dc:date>2016-12-29T12:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional addition within Pivot</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245591#M395055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the event that someone wants to achieve something similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Values ​​should be doubled if the following is true:&lt;/P&gt;&lt;P&gt;If (right (pool, 1) = 'M' and env &amp;lt;&amp;gt; 'EMC' and env &amp;lt;&amp;gt; 'PKK'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of placing the if-function within the aggr, I turned it around. So this is, what works for me:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vZeitraumSelektion)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;} if(right(pool,1)='M' and env&amp;lt;&amp;gt;'EMC' and env&amp;lt;&amp;gt;'PKK',&lt;BR /&gt; aggr(sum({&amp;lt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vZeitraumSelektion)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, Usage_Flag={'presented_gib'}&amp;gt;} Wert)*2, lun, pool, env, Kunde, Datum),&lt;BR /&gt; aggr(sum({&amp;lt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;$(vZeitraumSelektion)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, Usage_Flag={'presented_gib'}&amp;gt;} Wert), lun, pool, env, Kunde, Datum))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank all of you very much&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 13:38:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-addition-within-Pivot/m-p/1245591#M395055</guid>
      <dc:creator />
      <dc:date>2016-12-29T13:38:42Z</dc:date>
    </item>
  </channel>
</rss>

