<?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 Data table analysis and using $Field as a Dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613913#M477852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have a table, using $Field as the dimension, how can I run an arbitrary expression on that field as a whole in a Straight Table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have numerous tables with 10's of millions of rows, and over 20 fields each. I'm looking at seeing the "fill rate" of this table, among other metrics on a per-field basis (ex. Count of non-zero length field values: count({&amp;lt;[Field Name]-={"=len(trim([Field Name]))=0"}&amp;gt;} [Field Name]). I don't want to have to create an expression for the hundreds of Field Names that I have, and I still need the ability to slice-and-dice my data (ex. I want the above expression (count of non-zero length field values) for items that are marked "active", and in certain zip codes).&amp;nbsp; Because there are many tables that I'll need to run this on, I need something with minimal, if not zero, modification of the QVW to accommodate different source tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because $Field is an island from the actual tables, is there a way to dynamically add the string value of the current dimension value, in this case the value of $Field, into my expression, so that for each row in my straight table, it will calculate on the desired field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried $($Field) and [$($Field)], but neither work from what I can see. The only solution I've found so far is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=concat(TOTAL 'if($Field=' &amp;amp; chr(39) &amp;amp; $Field &amp;amp; chr(39) &amp;amp; ',sum(if(len([' &amp;amp; $Field &amp;amp; '])&amp;gt;0,1,0))', ',') &amp;amp; concat(TOTAL right($Field&amp;amp;')',1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which, as one can guess with all the concatenation and If statements, does not scale well to my required purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If found this thread (&lt;A href="https://community.qlik.com/message/358852"&gt;Max length of all fields&lt;/A&gt;), but it is still marked unanswered, and as I just started my new position, I don't have a license yet capable of opening the final poster's QVW to see if it contains a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated,&lt;/P&gt;&lt;P&gt;~Zack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2014 13:34:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-08T13:34:12Z</dc:date>
    <item>
      <title>Data table analysis and using $Field as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613913#M477852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I have a table, using $Field as the dimension, how can I run an arbitrary expression on that field as a whole in a Straight Table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have numerous tables with 10's of millions of rows, and over 20 fields each. I'm looking at seeing the "fill rate" of this table, among other metrics on a per-field basis (ex. Count of non-zero length field values: count({&amp;lt;[Field Name]-={"=len(trim([Field Name]))=0"}&amp;gt;} [Field Name]). I don't want to have to create an expression for the hundreds of Field Names that I have, and I still need the ability to slice-and-dice my data (ex. I want the above expression (count of non-zero length field values) for items that are marked "active", and in certain zip codes).&amp;nbsp; Because there are many tables that I'll need to run this on, I need something with minimal, if not zero, modification of the QVW to accommodate different source tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because $Field is an island from the actual tables, is there a way to dynamically add the string value of the current dimension value, in this case the value of $Field, into my expression, so that for each row in my straight table, it will calculate on the desired field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried $($Field) and [$($Field)], but neither work from what I can see. The only solution I've found so far is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=concat(TOTAL 'if($Field=' &amp;amp; chr(39) &amp;amp; $Field &amp;amp; chr(39) &amp;amp; ',sum(if(len([' &amp;amp; $Field &amp;amp; '])&amp;gt;0,1,0))', ',') &amp;amp; concat(TOTAL right($Field&amp;amp;')',1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which, as one can guess with all the concatenation and If statements, does not scale well to my required purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If found this thread (&lt;A href="https://community.qlik.com/message/358852"&gt;Max length of all fields&lt;/A&gt;), but it is still marked unanswered, and as I just started my new position, I don't have a license yet capable of opening the final poster's QVW to see if it contains a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated,&lt;/P&gt;&lt;P&gt;~Zack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 13:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613913#M477852</guid>
      <dc:creator />
      <dc:date>2014-04-08T13:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data table analysis and using $Field as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613914#M477853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this took me all day yesterday and all of this morning, but after much trial and error, this seems to work:&lt;/P&gt;&lt;P&gt;=pick(RowNo(),$(=concat('Count([' &amp;amp; $Field &amp;amp; '])',',')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use of the concat function seems necessary to prioritize the processing of the field information inside of the $-expansion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps other people,&lt;/P&gt;&lt;P&gt;~Zack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2014 15:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613914#M477853</guid>
      <dc:creator />
      <dc:date>2014-04-09T15:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data table analysis and using $Field as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613915#M477854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha, glad that helped. I spent the better part of a day bashing my head over the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Oct 2014 20:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613915#M477854</guid>
      <dc:creator />
      <dc:date>2014-10-06T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data table analysis and using $Field as a Dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613916#M477855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, I know the feeling. Took me a whole day or two to just create a button that will allow you to traverse over field values inside one text box using buttons like this.&amp;nbsp; &amp;lt;&amp;nbsp; &amp;gt;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 18:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-table-analysis-and-using-Field-as-a-Dimension/m-p/613916#M477855</guid>
      <dc:creator>b_garside</dc:creator>
      <dc:date>2014-10-07T18:00:33Z</dc:date>
    </item>
  </channel>
</rss>

