<?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: Calculation Condition - Complex in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389553#M565741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question then is, can I do the list of dimensions in the Aggr statement as a Concat function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Aggr(Count(1),Concat(%DimensionName,',')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 09:59:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-03T09:59:31Z</dc:date>
    <item>
      <title>Calculation Condition - Complex</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389551#M565739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy New Year to everyone.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with a table where I have a number of conditional dimensions, and I'd like to only calculate the table when the resulting number of rows to display inside the table is less than 250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot simply limit this by looking at a row counter in the database, because if the user decides to only show Region as a dimension then this would result in only 4 rows being shown in the table and in this case I'd obviously like to show all of the data against those 4 rows.&amp;nbsp; However, if the user decides to show 10 dimensions and this results in a table that would provide 10 million rows, I would like to be able to activate the conditional calculation error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm assuming that this is going to need to be done by using some form of Aggr function, but I'm struggling to know where to start with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For information, the dimensions are conditionally shown using the following formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SubStringCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%DimensionName&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, '|'), 'Book Date') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anybody can give me any pointers as to how I get the calculation condition working I would really appreciate it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I &lt;STRONG&gt;do not&lt;/STRONG&gt; want to use a macro to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389551#M565739</guid>
      <dc:creator />
      <dc:date>2013-01-03T09:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Condition - Complex</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389552#M565740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to aggregate the count over all the dimensions in your chart. Something like this:&lt;/P&gt;&lt;P&gt;count(aggr(count(1),Dim1,Dim2,Dim3....,DimX)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:54:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389552#M565740</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-03T09:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Condition - Complex</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389553#M565741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question then is, can I do the list of dimensions in the Aggr statement as a Concat function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Aggr(Count(1),Concat(%DimensionName,',')))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 09:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389553#M565741</guid>
      <dc:creator />
      <dc:date>2013-01-03T09:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Condition - Complex</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389554#M565742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If %DimensionName is a field to select dimensions I don't think you can use the concat expression directly. But you can use a variable to hold the concat expression =concat('['&amp;amp;%DimensionName&amp;amp;']',',') and use the variable in the count expression count(Aggr(count(1),$(vDims))). See attached example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 10:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-Complex/m-p/389554#M565742</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-03T10:18:23Z</dc:date>
    </item>
  </channel>
</rss>

