<?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 Different calculations on different rows in one table (straight or Pivot) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163333#M36460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found a solution;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Made a not linked tables with the KPI's, used one of this fields as dimension in the table. And then use an if function to calculate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (KPI_nr='1',&lt;/P&gt;&lt;P&gt;COUNT(&amp;lt;Period={$(=maxstring[PIT_Year]-1)}&amp;gt;X),&lt;/P&gt;&lt;P&gt;if(KPI_nr='2',&lt;/P&gt;&lt;P&gt;SUM(&amp;lt;Period={$(=maxstring[PIT_Year]-1)}&amp;gt;Y),&lt;/P&gt;&lt;P&gt;If(KPI_nr='3',&lt;/P&gt;&lt;P&gt;MAX(&amp;lt;Period={$(=maxstring[PIT_Year]-1)}&amp;gt;Y)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2011 09:27:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-16T09:27:16Z</dc:date>
    <item>
      <title>Different calculations on different rows in one table (straight or Pivot)</title>
      <link>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163331#M36458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all I have the next question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a QV application I have diiferent KPI's on Different sheets. My client wants one sheet with al those KPI's as start page. This will look like this (simplified);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3808_sourceID:3808" /&gt;&lt;/P&gt;&lt;P&gt;I have the problem that i want to use different formulas for the same expression in QV. Anybody a hint?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 08:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163331#M36458</guid>
      <dc:creator />
      <dc:date>2011-03-16T08:54:57Z</dc:date>
    </item>
    <item>
      <title>Different calculations on different rows in one table (straight or Pivot)</title>
      <link>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163332#M36459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple method would be to contain each formula within an 'if' based either on the dimension value or the rowno() value.&lt;/P&gt;&lt;P&gt;eg: if(rowno()=1,sum(sales),if(rowno()=2,count(Customers),sum(Sales)/count(Customers)))&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Matt - Visual Analytics Ltd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 08:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163332#M36459</guid>
      <dc:creator>matt_crowther</dc:creator>
      <dc:date>2011-03-16T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Different calculations on different rows in one table (straight or Pivot)</title>
      <link>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163333#M36460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found a solution;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Made a not linked tables with the KPI's, used one of this fields as dimension in the table. And then use an if function to calculate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (KPI_nr='1',&lt;/P&gt;&lt;P&gt;COUNT(&amp;lt;Period={$(=maxstring[PIT_Year]-1)}&amp;gt;X),&lt;/P&gt;&lt;P&gt;if(KPI_nr='2',&lt;/P&gt;&lt;P&gt;SUM(&amp;lt;Period={$(=maxstring[PIT_Year]-1)}&amp;gt;Y),&lt;/P&gt;&lt;P&gt;If(KPI_nr='3',&lt;/P&gt;&lt;P&gt;MAX(&amp;lt;Period={$(=maxstring[PIT_Year]-1)}&amp;gt;Y)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 09:27:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163333#M36460</guid>
      <dc:creator />
      <dc:date>2011-03-16T09:27:16Z</dc:date>
    </item>
    <item>
      <title>Different calculations on different rows in one table (straight or Pivot)</title>
      <link>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163334#M36461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt!!&lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 09:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-calculations-on-different-rows-in-one-table-straight/m-p/163334#M36461</guid>
      <dc:creator />
      <dc:date>2011-03-16T09:30:46Z</dc:date>
    </item>
  </channel>
</rss>

