<?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: Adding row in table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414897#M821188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Martina.&lt;/P&gt;&lt;P&gt;Then we try it in a different way.&lt;/P&gt;&lt;P&gt;1. Step&lt;/P&gt;&lt;P&gt;add this data island to your script (no changes to existing script):&lt;/P&gt;&lt;P&gt;CalcDim:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and perform a reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Step&lt;/P&gt;&lt;P&gt;(I assumed your table is a pivot table)&lt;/P&gt;&lt;P&gt;Create this calculated dimension in the dimension tab of your table:&lt;/P&gt;&lt;P&gt;=If(Country = 'Indonesia', Pick(Dimension, Owner, 'Gnewas &amp;amp; Almara'), Owner) &lt;/P&gt;&lt;P&gt;delete your old dimension 'Owner' and rename the new dimensin 'Owner' again.&lt;/P&gt;&lt;P&gt;Go to the Sort tab and check for 'Owner' sort by expression. Enter this expression&lt;/P&gt;&lt;P&gt;If(Country = 'Indonesia', Match(Pick(Dimension, Owner, 'Gnewas &amp;amp; Almara'), 'Gnewas', 'Almara', 'Gnewas &amp;amp; Almara', 'Berewic'), Owner)&lt;/P&gt;&lt;P&gt;Chose 'Ascending'.&lt;/P&gt;&lt;P&gt;Go to the expression tab and enter this expression for No of Products (I used the basic expression 'Sum(Products)' you should take your expression instead):&lt;/P&gt;&lt;P&gt;If(Country = 'Indonesia',&lt;/P&gt;&lt;P&gt;If(Dimensionality() = 1, Sum({$&amp;lt;Owner = {'Gnewas', 'Almara', 'Berewic'}&amp;gt;} Products), //this gives the subtotal of Indonesia&lt;/P&gt;&lt;P&gt;Pick(Dimension, Sum(Products), Sum({$&amp;lt;Owner = {'Gnewas', 'Almara'}&amp;gt;} Products))), //this gives the value of Gnewas &amp;amp; Almara&lt;/P&gt;&lt;P&gt;Sum(Products)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last you'll get this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AddRow.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173822_AddRow.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You'll find the extra row and the subtotal of Indonesia is unaltered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is ok for you&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2017 11:00:04 GMT</pubDate>
    <dc:creator>veidlburkhard</dc:creator>
    <dc:date>2017-08-18T11:00:04Z</dc:date>
    <item>
      <title>Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414889#M821173</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've got a table with two dimensions and several formulars.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to Display one additional row, which displays the sum of two other rows.&lt;/P&gt;&lt;P&gt;See attached file. The red row I have to insert, which contains the data of the two above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anybody an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanhx!&lt;IMG __jive_id="173661" alt="example.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173661_example.png" style="width: 620px; height: 388px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414889#M821173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414890#M821176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you want to have sub total &lt;SPAN style="font-size: 10pt;"&gt;for each Country ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 16:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414890#M821176</guid>
      <dc:creator>Venkatchoudary</dc:creator>
      <dc:date>2017-08-17T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414891#M821179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martina,&lt;/P&gt;&lt;P&gt;without any knowledge of the data behind I can only guess. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you try to reasonbly transfer this into your script you'll get an additional owner Gnewas &amp;amp; Almara:&lt;/P&gt;&lt;P&gt;T1:&lt;BR /&gt; Load&lt;BR /&gt; Country,&lt;BR /&gt; Owner,&lt;BR /&gt; Product,&lt;BR /&gt; Amount&lt;/P&gt;&lt;P&gt;From your source.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt; Country,&lt;BR /&gt; ‘Gnewas &amp;amp; Almara’ as Owner,&lt;BR /&gt; Product,&lt;BR /&gt; Amount&lt;/P&gt;&lt;P&gt;Resident T1&lt;BR /&gt; where Owner = ‘Almara’ or Owner = ‘Gnewas’;&lt;BR /&gt; &lt;BR /&gt; The second Table automatically concatenates to T1 and you’ll have an additional owner Gnewas &amp;amp; Almara with all the products and amounts of Gnewas and Almara, placed in Indonesia.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 19:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414891#M821179</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2017-08-17T19:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414892#M821181</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 go for some thing Profit and Loss statement dashboard in qlikview or create the Interval match table if required to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3324"&gt;How to Create a Profit and Loss Statement in QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 06:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414892#M821181</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-18T06:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414893#M821183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a subtotal for each Country, only the marked line is required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414893#M821183</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T07:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414894#M821185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your replay, but I can't change the script in the recommended way, because it is very complex, several pages, a lot of data.... and the results in a lot of tables.....&lt;/P&gt;&lt;P&gt;The table I posted is only one and this one is reduced to the relevant Information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414894#M821185</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T07:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414895#M821186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx, I can't see a relation between P&amp;amp;L and my data.&lt;/P&gt;&lt;P&gt;But maybe the interval match table could help. What do you mean with this table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:23:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414895#M821186</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-18T07:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414896#M821187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;They are used to calculate the matched record start and end numbers only to get the total sum values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 07:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414896#M821187</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-08-18T07:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414897#M821188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Martina.&lt;/P&gt;&lt;P&gt;Then we try it in a different way.&lt;/P&gt;&lt;P&gt;1. Step&lt;/P&gt;&lt;P&gt;add this data island to your script (no changes to existing script):&lt;/P&gt;&lt;P&gt;CalcDim:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;P&gt;1,&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and perform a reload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Step&lt;/P&gt;&lt;P&gt;(I assumed your table is a pivot table)&lt;/P&gt;&lt;P&gt;Create this calculated dimension in the dimension tab of your table:&lt;/P&gt;&lt;P&gt;=If(Country = 'Indonesia', Pick(Dimension, Owner, 'Gnewas &amp;amp; Almara'), Owner) &lt;/P&gt;&lt;P&gt;delete your old dimension 'Owner' and rename the new dimensin 'Owner' again.&lt;/P&gt;&lt;P&gt;Go to the Sort tab and check for 'Owner' sort by expression. Enter this expression&lt;/P&gt;&lt;P&gt;If(Country = 'Indonesia', Match(Pick(Dimension, Owner, 'Gnewas &amp;amp; Almara'), 'Gnewas', 'Almara', 'Gnewas &amp;amp; Almara', 'Berewic'), Owner)&lt;/P&gt;&lt;P&gt;Chose 'Ascending'.&lt;/P&gt;&lt;P&gt;Go to the expression tab and enter this expression for No of Products (I used the basic expression 'Sum(Products)' you should take your expression instead):&lt;/P&gt;&lt;P&gt;If(Country = 'Indonesia',&lt;/P&gt;&lt;P&gt;If(Dimensionality() = 1, Sum({$&amp;lt;Owner = {'Gnewas', 'Almara', 'Berewic'}&amp;gt;} Products), //this gives the subtotal of Indonesia&lt;/P&gt;&lt;P&gt;Pick(Dimension, Sum(Products), Sum({$&amp;lt;Owner = {'Gnewas', 'Almara'}&amp;gt;} Products))), //this gives the value of Gnewas &amp;amp; Almara&lt;/P&gt;&lt;P&gt;Sum(Products)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At last you'll get this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AddRow.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173822_AddRow.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;You'll find the extra row and the subtotal of Indonesia is unaltered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is ok for you&lt;/P&gt;&lt;P&gt;Burkhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 11:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414897#M821188</guid>
      <dc:creator>veidlburkhard</dc:creator>
      <dc:date>2017-08-18T11:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Adding row in table</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414898#M821189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One sample here you can check:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/208392"&gt;Manually insert row within table&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/242240"&gt;Calculations on rows in Load script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 11:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-row-in-table/m-p/1414898#M821189</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-08-18T11:09:11Z</dc:date>
    </item>
  </channel>
</rss>

