<?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 Do I have to create this table in Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Do-I-have-to-create-this-table-in-Script/m-p/899367#M312881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create 2 reports/query that shows &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1) Inactive Customers with a Credit Limit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Customers with no Sales in last 6 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both queries rely on a "cutoff date" = Today-6 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On #1, I want to show all customers with Max(InvoiceDate) &amp;lt;= Cutoff Date and CreditLimit &amp;gt;1&lt;/P&gt;&lt;P&gt;On #2, I want to show all customers with Sales=0, with MaxInvoiceDate &amp;gt;=CutoffDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to do this in Pivot Table with calculated dimensions, but am having problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustNo&lt;/P&gt;&lt;P&gt;CusName&lt;/P&gt;&lt;P&gt;Credit Limit -&amp;gt;&amp;nbsp; If(CreditLimit &amp;gt;1, CreditLimit, '') -&amp;gt; Suppress Null Values&lt;/P&gt;&lt;P&gt;MaxInvDate -&amp;gt; =(Date(max(InvDate)&amp;nbsp; -&amp;gt;&amp;nbsp; //ERROR IN CALCULATED DIMENSION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I am stepping on my toes.&amp;nbsp;&amp;nbsp; If I create an expression for Max(InvDate) i get a value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me, I need to setup these filters before the dimensions are returned.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; If I put the MaxDate into n If statement in expressions, I still get all the customers but if the MaxDate is outside my parameter, it just show null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2015 16:57:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-20T16:57:17Z</dc:date>
    <item>
      <title>Do I have to create this table in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Do-I-have-to-create-this-table-in-Script/m-p/899367#M312881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create 2 reports/query that shows &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1) Inactive Customers with a Credit Limit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Customers with no Sales in last 6 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both queries rely on a "cutoff date" = Today-6 months&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On #1, I want to show all customers with Max(InvoiceDate) &amp;lt;= Cutoff Date and CreditLimit &amp;gt;1&lt;/P&gt;&lt;P&gt;On #2, I want to show all customers with Sales=0, with MaxInvoiceDate &amp;gt;=CutoffDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to do this in Pivot Table with calculated dimensions, but am having problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustNo&lt;/P&gt;&lt;P&gt;CusName&lt;/P&gt;&lt;P&gt;Credit Limit -&amp;gt;&amp;nbsp; If(CreditLimit &amp;gt;1, CreditLimit, '') -&amp;gt; Suppress Null Values&lt;/P&gt;&lt;P&gt;MaxInvDate -&amp;gt; =(Date(max(InvDate)&amp;nbsp; -&amp;gt;&amp;nbsp; //ERROR IN CALCULATED DIMENSION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I am stepping on my toes.&amp;nbsp;&amp;nbsp; If I create an expression for Max(InvDate) i get a value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me, I need to setup these filters before the dimensions are returned.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&amp;nbsp; If I put the MaxDate into n If statement in expressions, I still get all the customers but if the MaxDate is outside my parameter, it just show null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 16:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-I-have-to-create-this-table-in-Script/m-p/899367#M312881</guid>
      <dc:creator />
      <dc:date>2015-05-20T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Do I have to create this table in Script</title>
      <link>https://community.qlik.com/t5/QlikView/Do-I-have-to-create-this-table-in-Script/m-p/899368#M312882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Calculated dimensions usually don't like chart aggregation functions like Max() unless you used advanced aggregation function (aggr) to subtotal it to a specific dimension granularity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MaxInvDate -&amp;gt; =(Date(max(InvDate)&amp;nbsp; -&amp;gt;&amp;nbsp; //ERROR IN CALCULATED DIMENSION&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;try something like this where you aggregate based on the other chart dimensions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(&amp;nbsp;&amp;nbsp; aggr( max(InvDate) , CustNo,CustName)&amp;nbsp; )&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2015 17:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Do-I-have-to-create-this-table-in-Script/m-p/899368#M312882</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-05-20T17:30:49Z</dc:date>
    </item>
  </channel>
</rss>

