<?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: Calculated metrics or columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361106#M494918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put it in the script, or you can use it in a single object, or you can place it in a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 21:57:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-20T21:57:38Z</dc:date>
    <item>
      <title>Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361103#M494915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the script editor the only place that will allow the creation of aggregate variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to pull data of birth and calculate age within qlikview? Is there a way without going to the script editor to calculate Age values in the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tiji &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 21:43:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361103#M494915</guid>
      <dc:creator />
      <dc:date>2012-03-20T21:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361104#M494916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Year(today() )- Year(DOB)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should produce the age.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 21:50:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361104#M494916</guid>
      <dc:creator />
      <dc:date>2012-03-20T21:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361105#M494917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but where do I place this expression? in the script editor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I am asking "Where do I create calculated fields other than the script editor for loading?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tiji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 21:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361105#M494917</guid>
      <dc:creator />
      <dc:date>2012-03-20T21:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361106#M494918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can put it in the script, or you can use it in a single object, or you can place it in a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 21:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361106#M494918</guid>
      <dc:creator />
      <dc:date>2012-03-20T21:57:38Z</dc:date>
    </item>
    <item>
      <title>Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361107#M494919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; In Expression overview, I don't see an add option to get the object added into the list of fields. How do I add the single object or the variable editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me the menu option to get to the new field editor screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tiji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 22:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361107#M494919</guid>
      <dc:creator />
      <dc:date>2012-03-20T22:05:43Z</dc:date>
    </item>
    <item>
      <title>Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361108#M494920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Instead of the Year (A) - year(B), you can use the age() function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;STRONG&gt;&lt;SPAN class="Bold"&gt;age(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;timestamp, date_of_birth&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Returns the age at the time of &lt;SPAN class="Italic"&gt;timestamp&lt;/SPAN&gt; (in completed years) of somebody born on &lt;SPAN class="Italic"&gt;date_of_birth&lt;/SPAN&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The best approach ( if it makes sense in your case) is to put this in your load script.&lt;/P&gt;&lt;P&gt;Let us say that you script is similar to this: &lt;/P&gt;&lt;P&gt;Load user_id, &lt;/P&gt;&lt;P&gt;dateofBirth,&lt;/P&gt;&lt;P&gt; ..&lt;/P&gt;&lt;P&gt;from / resident&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create a new field as you would do in SQL: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load user_id, &lt;/P&gt;&lt;P&gt;dateofBirth,&lt;/P&gt;&lt;P&gt;age ( today(),&amp;nbsp; dateofBirth) as Age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;from / resident&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, you would be able to use the new field 'Age' in your interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 22:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361108#M494920</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-03-20T22:16:54Z</dc:date>
    </item>
    <item>
      <title>Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361109#M494921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Making the change to the load script by adding this computed column is the only way to add the field to the data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to hear that I missed a menu option that would help me create the field tied to a data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From business user perspective, to ensure adoption, I will have to give them a file or field in the database that has the age calculated in the query to pull the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With all this coolness in the tool, I just wish the script editor would not come in the way of adding custom fields to the data set. I understand that it could be the design for the tool is addressing a different use case here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your attention to my silly question and providing a detailed answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 22:23:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361109#M494921</guid>
      <dc:creator />
      <dc:date>2012-03-20T22:23:04Z</dc:date>
    </item>
    <item>
      <title>Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361110#M494922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad I could help! &lt;/P&gt;&lt;P&gt;There are no silly questions. It's important to check any doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative would be the creation of calculated dimension. You can do that directly on the chart. &lt;/P&gt;&lt;P&gt;Chart properties -&amp;gt; Dimension -&amp;gt; Add calculated dimension. &lt;/P&gt;&lt;P&gt;The syntax would be almost the same: &lt;/P&gt;&lt;P&gt;=age ( today(),&amp;nbsp; dateofBirth)&lt;/P&gt;&lt;P&gt;Since it needs to be calculated again after any selection, you may have performance problems, specially for date calculations as mentioned here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-wiki-small" href="http://community.qlik.com/docs/DOC-2715"&gt;http://community.qlik.com/docs/DOC-2715&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 22:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361110#M494922</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-03-20T22:36:03Z</dc:date>
    </item>
    <item>
      <title>Calculated metrics or columns</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361111#M494923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response and the link as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see the calculated dimension option for chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically by design, Qlikview should be used for data discovery and not ETL or aggregation. The aggregation happens for the chart by the dimensions but the fields needed for the analysis would be most useful if the data is already available as a field at the detail level. This will help qlikview be utilized to its full potential rather than make it do what it is not designed to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My pain point with Qlikview is still the clunky script interface to create new fields. I wish there was an add button in the expression overivew window to add new fields. But I understand the purpose of limiting such a feature as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Erich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Tiji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2012 13:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-metrics-or-columns/m-p/361111#M494923</guid>
      <dc:creator />
      <dc:date>2012-03-21T13:53:37Z</dc:date>
    </item>
  </channel>
</rss>

