<?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 Reference which table a field is in? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reference-which-table-a-field-is-in/m-p/711193#M256145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement whereby if a selection is made within the fields of a specific table in the QV Data Model, one expression is used, else another expression is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could do something like this: if(getselectedcount(salesrep)&amp;gt;0,sum(detail),sum(summary))&lt;/P&gt;&lt;P&gt;But the problem is I have a few dozen fields that must use an alternative expression with this same logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have to list these fields out within nested if statement or whatever, because that will require maintenance.&amp;nbsp; Is there a way to reference all the fields in a particular table in the data model so if(getselectedcount(all fields in customer table)&amp;gt;0,sum(detail),sum(summary)) that would be way better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2014 17:57:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-08-04T17:57:13Z</dc:date>
    <item>
      <title>Reference which table a field is in?</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-which-table-a-field-is-in/m-p/711193#M256145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a requirement whereby if a selection is made within the fields of a specific table in the QV Data Model, one expression is used, else another expression is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could do something like this: if(getselectedcount(salesrep)&amp;gt;0,sum(detail),sum(summary))&lt;/P&gt;&lt;P&gt;But the problem is I have a few dozen fields that must use an alternative expression with this same logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to have to list these fields out within nested if statement or whatever, because that will require maintenance.&amp;nbsp; Is there a way to reference all the fields in a particular table in the data model so if(getselectedcount(all fields in customer table)&amp;gt;0,sum(detail),sum(summary)) that would be way better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this even possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 17:57:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-which-table-a-field-is-in/m-p/711193#M256145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-08-04T17:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reference which table a field is in?</title>
      <link>https://community.qlik.com/t5/QlikView/Reference-which-table-a-field-is-in/m-p/711194#M256146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Can be done using variables. You will need to reference system fields. Your expression will look like&lt;/P&gt;&lt;P&gt;if($Table = 'customer_table',sum(detail),sum(summary)). &lt;/P&gt;&lt;P&gt;$Table is a system field that contains a list of tables. Making a selection on any of the fields within it will internally select this table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 18:46:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reference-which-table-a-field-is-in/m-p/711194#M256146</guid>
      <dc:creator />
      <dc:date>2014-08-04T18:46:59Z</dc:date>
    </item>
  </channel>
</rss>

