<?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: expression name showing as a bad field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440846#M1156863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this information is most helpful.&amp;nbsp; Thank you for your time..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 14:53:29 GMT</pubDate>
    <dc:creator>ellyodelly</dc:creator>
    <dc:date>2013-02-19T14:53:29Z</dc:date>
    <item>
      <title>expression name showing as a bad field name</title>
      <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440840#M1156857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created an expression that calculates the days between two dates interval(date1 - date2,'d')&amp;nbsp; works ok&amp;nbsp;&amp;nbsp; call it Cutoffdaysdif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for testing i am just trying to show the max of that expression.&amp;nbsp; I have found examples of other QlikView users doing this but I keep getting a bad field name.&lt;/P&gt;&lt;P&gt;I can assing the new expression = to the existing but as soon as I try an aggregation on it-&amp;nbsp; it fails as a bad name.&lt;/P&gt;&lt;P&gt;ultimately I would like to use the Cutoffdaysdif in a set analysis- that should work correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what am i missing?&amp;nbsp; I do have a snap shot attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks, Elly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 15:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440840#M1156857</guid>
      <dc:creator>ellyodelly</dc:creator>
      <dc:date>2013-02-15T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: expression name showing as a bad field name</title>
      <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440841#M1156858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that's just the way it is. You can't use column labels as field names in aggregation functions. You'll have to use the expression itself and then you'll need to use the aggr function on it first. Otherwise there's not a list of values to find the max value of. max(sum(Sales) won't work, max(aggr(sum(Sales),Product)) would (if you have a dimension Product and a field Sales).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 16:44:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440841#M1156858</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-15T16:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: expression name showing as a bad field name</title>
      <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440842#M1156859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;interesting-&amp;nbsp; or i could put the same logic with in my set analysis and remove the cutoffdaysdif?&lt;/P&gt;&lt;P&gt;however i have a set modifier error I can not figure out&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; interval(varAgeCutoff-[AR Transaction Date],'d') = {"&amp;gt; 0"}, interval(varAgeCutoff - [AR Transaction Date],'d') = {"&amp;lt; 31"} &amp;gt;} [AR Invoice Amt])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 17:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440842#M1156859</guid>
      <dc:creator>ellyodelly</dc:creator>
      <dc:date>2013-02-15T17:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: expression name showing as a bad field name</title>
      <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440843#M1156860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can only use fields in set analysis expressions on the left hand of a comparison condition. So you'd have to rewrite it to this (if I understand it correctly):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sum({$&amp;lt; [AR Transaction Date] = {"&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;$(varAgeCutoff)-31&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;lt;$(varAgeCutoff)"} &amp;gt;} [AR Invoice Amt])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also a set analysis expression is calculated once per chart, not per row. The set is calculated first and then the dimensions and expressions are applied to the records in the set. That means if you use AR Transaction Date as a dimension in your chart you can't use it in the set analysis expression and expect it to do what you want and probably expect it to do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 17:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440843#M1156860</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-15T17:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: expression name showing as a bad field name</title>
      <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440844#M1156861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did not know that~&amp;nbsp; what about variables?&amp;nbsp; when are they calculated? by document or by row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do appreciate your help-&amp;nbsp; as you can tell I am a definate rookie &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 18:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440844#M1156861</guid>
      <dc:creator>ellyodelly</dc:creator>
      <dc:date>2013-02-15T18:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: expression name showing as a bad field name</title>
      <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440845#M1156862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you define a variable (e.g. vMyVar) as &lt;EM&gt;=sum(Sales)&lt;/EM&gt; then it is calculated anything something in the document changes, like for example selections or a chart is added or changed. It's otherwise static, meaning not dependant on values of dimensions if used in a chart. If you define the variable as &lt;EM&gt;sum(Sales)&lt;/EM&gt; then it's evaluated when you dollar-expand it: &lt;EM&gt;$(vMyVar). &lt;/EM&gt;That means if you use it in an expression it will take the charts dimension values into account, i.e. it's calculated per row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2013 08:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440845#M1156862</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-16T08:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: expression name showing as a bad field name</title>
      <link>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440846#M1156863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this information is most helpful.&amp;nbsp; Thank you for your time..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 14:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-name-showing-as-a-bad-field-name/m-p/440846#M1156863</guid>
      <dc:creator>ellyodelly</dc:creator>
      <dc:date>2013-02-19T14:53:29Z</dc:date>
    </item>
  </channel>
</rss>

