<?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 Metrics Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174371#M43223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similiar problem. I initially had a working version which was completely hardcoded and didn't seem to have any problems with length. ie. If(Exp = 1,Sum(..), If(Exp=2,Sum(...) etc.&lt;/P&gt;&lt;P&gt;Tried to improve it by using variables created in script to define each calculation and substitituing in the expression but got same outcome, only worked for first 20 or so - then nulls. Splitting tables worked as with yours. I never bothered to count number of characters. Couldn't resolve it.&lt;/P&gt;&lt;P&gt;In the end changed the script so that pre-aggregated the Numerator and Denominator for each metric at plant / date level. Then the chart expression was simply Sum(Numerator) / Sum(Denominator).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Dec 2009 08:54:42 GMT</pubDate>
    <dc:creator>michael_anthony</dc:creator>
    <dc:date>2009-12-10T08:54:42Z</dc:date>
    <item>
      <title>Metrics Table</title>
      <link>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174369#M43221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I´m trying to create a pivot table that include 88 metrics each with their own unique expression. I was able to create the table for the first 20 or so metrics by assigning each expression to a different variable in the script and then using the dollar sign expansion and the pick function in order to execute the correct expression for each row.&lt;/P&gt;&lt;P&gt;However, after the first 20 or so metrics, all the other metrics would retrun null. If I separated the metrics that returned null into another table they would calculate correctly so my theory is that a expression in QlikView can only be so long and after so many caracters the expression fails to calculate. Somewhere around 10,000 caracters. Can anybody confirm this?&lt;/P&gt;&lt;P&gt;Has anybody else worked on a similar report format? I tried to make dynamic variable names so as to avoid having to expand all the expressions and use the pick, but I haven't had any success yet. Anybody else have a different idea?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 10:02:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174369#M43221</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2009-09-03T10:02:07Z</dc:date>
    </item>
    <item>
      <title>Metrics Table</title>
      <link>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174370#M43222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've only done something similar in a demonstration example. I had a three by three straight table with different calculations in each cell. I didn't use variables. I'll attach it in case it's any help. I haven't heard of a limitation on the length of expressions, but I haven't written any expressions that I would expect to hit a limit either.&lt;/P&gt;&lt;P&gt;It's possible that there's something wrong with the pick() rather than with the length of the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 01:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174370#M43222</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-09-04T01:02:06Z</dc:date>
    </item>
    <item>
      <title>Metrics Table</title>
      <link>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174371#M43223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similiar problem. I initially had a working version which was completely hardcoded and didn't seem to have any problems with length. ie. If(Exp = 1,Sum(..), If(Exp=2,Sum(...) etc.&lt;/P&gt;&lt;P&gt;Tried to improve it by using variables created in script to define each calculation and substitituing in the expression but got same outcome, only worked for first 20 or so - then nulls. Splitting tables worked as with yours. I never bothered to count number of characters. Couldn't resolve it.&lt;/P&gt;&lt;P&gt;In the end changed the script so that pre-aggregated the Numerator and Denominator for each metric at plant / date level. Then the chart expression was simply Sum(Numerator) / Sum(Denominator).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 08:54:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174371#M43223</guid>
      <dc:creator>michael_anthony</dc:creator>
      <dc:date>2009-12-10T08:54:42Z</dc:date>
    </item>
    <item>
      <title>Metrics Table</title>
      <link>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174372#M43224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The length of the expression seemed to be a problem in V9 SR1, but in V9 SR2 the pick expression that is far greater than 10,000 characters works perfectly fine. Some developer must have read my thoughts. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 16:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Metrics-Table/m-p/174372#M43224</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-02-09T16:10:03Z</dc:date>
    </item>
  </channel>
</rss>

