<?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 table- combining dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334414#M1177078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonika,&lt;/P&gt;&lt;P&gt;As long as I've understod, you have only one dimension, nine rows are coming from a database and the last row comes from another source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create a table in the data model with 9 rows coming from a database and I would ad a new row to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've writed an small example:&lt;/P&gt;&lt;P&gt; 0- The data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I've write an excel file with 2 columns 'dimension' and 'value'. The excel has 9 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1- The script.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.1- Load nine rows from an excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD dimension, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; Book1.xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.2- Add an additional row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dimension, value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;The 2 tables has exactly the same fields and QlikView will create only one table with 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2- Visualization, the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a table with 9 rows coming from an excel file and a row loaded inline. To finish this eample you need an expresion for the first 9 row and a diferent expresion for the last row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(RowNo()&amp;lt;=9 and RowNo()&amp;gt;=1, sum(value), value*34)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I've a table (graph) with 2 columns and 10 rows. In the dimension 9 rows comes from the excel and the last one is generated in the script. In the values you have an expression for the 9 rows comming from the excel and a different expression for the last one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 17:58:45 GMT</pubDate>
    <dc:creator>Ferran_Garcia_Pagans</dc:creator>
    <dc:date>2012-05-03T17:58:45Z</dc:date>
    <item>
      <title>table- combining dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334413#M1177077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in implementing a table where there are 10 rows, 9 of which are pulled from the database, and remianing 1 has to be generated synthetically. This additional row has a different calculation than the rest of the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in achieving this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sonika Jain &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 13:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334413#M1177077</guid>
      <dc:creator>sonikajain</dc:creator>
      <dc:date>2012-05-03T13:02:37Z</dc:date>
    </item>
    <item>
      <title>table- combining dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334414#M1177078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonika,&lt;/P&gt;&lt;P&gt;As long as I've understod, you have only one dimension, nine rows are coming from a database and the last row comes from another source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would create a table in the data model with 9 rows coming from a database and I would ad a new row to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've writed an small example:&lt;/P&gt;&lt;P&gt; 0- The data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I've write an excel file with 2 columns 'dimension' and 'value'. The excel has 9 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1- The script.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.1- Load nine rows from an excel file.&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD dimension, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; Book1.xlsx&lt;/P&gt;&lt;P&gt;&amp;nbsp; (ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1.2- Add an additional row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dimension, value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10, 10&lt;/P&gt;&lt;P&gt;&amp;nbsp; ];&lt;/P&gt;&lt;P&gt;The 2 tables has exactly the same fields and QlikView will create only one table with 10 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2- Visualization, the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a table with 9 rows coming from an excel file and a row loaded inline. To finish this eample you need an expresion for the first 9 row and a diferent expresion for the last row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(RowNo()&amp;lt;=9 and RowNo()&amp;gt;=1, sum(value), value*34)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I've a table (graph) with 2 columns and 10 rows. In the dimension 9 rows comes from the excel and the last one is generated in the script. In the values you have an expression for the 9 rows comming from the excel and a different expression for the last one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 17:58:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334414#M1177078</guid>
      <dc:creator>Ferran_Garcia_Pagans</dc:creator>
      <dc:date>2012-05-03T17:58:45Z</dc:date>
    </item>
    <item>
      <title>table- combining dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334415#M1177079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI - To avoid the IF Statement you can do your calculations in your load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 18:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334415#M1177079</guid>
      <dc:creator>mphekin12</dc:creator>
      <dc:date>2012-05-03T18:33:06Z</dc:date>
    </item>
    <item>
      <title>table- combining dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334416#M1177080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do the calculation in the load script and yoy don't use an 'if' in the graph you are going to apply the same expression to the additional row, isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 08:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334416#M1177080</guid>
      <dc:creator>Ferran_Garcia_Pagans</dc:creator>
      <dc:date>2012-05-04T08:42:19Z</dc:date>
    </item>
    <item>
      <title>table- combining dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334417#M1177081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can you give a more detailed scenario if the above comment doesn't solve the problem? We don't really get what you want. It is too general.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 08:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-combining-dimensions/m-p/334417#M1177081</guid>
      <dc:creator />
      <dc:date>2012-05-04T08:50:56Z</dc:date>
    </item>
  </channel>
</rss>

