<?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: Defining a table within a data table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343155#M577397</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the expression must be defined per chart, so the only way would be to define all possible paths upfront.&lt;/P&gt;&lt;P&gt;You could use a pick/match combination to compare your current dimension value to a list of values and pick the correct expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;=&lt;EM&gt;pick(match(rowtext,'Total Cost','Total Count'),sum(cost),count(item))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you absolutely need to define that in a table (maybe you need to read the expression definition in from a DB, you could use some script to render a variable that holds the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 18:01:30 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-03-08T18:01:30Z</dc:date>
    <item>
      <title>Defining a table within a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343150#M577392</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;Can anyone help me with this? See the attached spreadsheet for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a very specific table to build in QV. Each value in the table is calculated differently so a standard table isn't going to work very well (at least I don't think it will), see the green table to see that sort of thing I want. The blue cells show the data behind the table.&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;What I'd like to do is define the items in the table inside an inline table, see the yellow table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The rowtext column of the yellow inline table would be used as the dimension in the green table. For each row, the related function in the inline yellow table would be used as the expression to calculate the value in the green table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense? Am I off my trolley? Is there a better way of doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 14:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343150#M577392</guid>
      <dc:creator />
      <dc:date>2012-03-08T14:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a table within a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343151#M577393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this useful?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 15:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343151#M577393</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-08T15:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a table within a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343152#M577394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sort of. But the table I want to make will have a lot more values on it, and many of them will be unique. With the table you made imagine having to add "average cost" to item A, but not item B. Or having to add a total average cost field with costs over £50 excluded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343152#M577394</guid>
      <dc:creator />
      <dc:date>2012-03-08T16:28:38Z</dc:date>
    </item>
    <item>
      <title>Defining a table within a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343153#M577395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to me that your yellow table is just defining expressions, I think you can just create a table with no dimension, create an expression per line of your yellow table, label taken from 'rowtext', expression defined by 'function'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343153#M577395</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-08T16:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a table within a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343154#M577396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To put it another way: is it possible to make the second column of the bottom table (see attached) contain the result of the function, not the function text itself?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343154#M577396</guid>
      <dc:creator />
      <dc:date>2012-03-08T16:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a table within a data table</title>
      <link>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343155#M577397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the expression must be defined per chart, so the only way would be to define all possible paths upfront.&lt;/P&gt;&lt;P&gt;You could use a pick/match combination to compare your current dimension value to a list of values and pick the correct expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;=&lt;EM&gt;pick(match(rowtext,'Total Cost','Total Count'),sum(cost),count(item))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you absolutely need to define that in a table (maybe you need to read the expression definition in from a DB, you could use some script to render a variable that holds the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Defining-a-table-within-a-data-table/m-p/343155#M577397</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-08T18:01:30Z</dc:date>
    </item>
  </channel>
</rss>

