<?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 Help with Table Expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414397#M488270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with all my outstanding invoices(Customer, Inv Date and Amount) . I am trying to create an age analysis for this - current 30 days and 60 +.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a table with invoice as the dimension it works but when i want to summarize by customer it only calcs the ones with only one invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I use is the following:&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;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ageing]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= 31, Sum(InvoiceBal2), '') etc. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume the reason the summary per customer doesnt work is that it doesnt know what the ageing is per customer when there are multiple invoices with different ageing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion how to overcome this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 11:23:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-11T11:23:35Z</dc:date>
    <item>
      <title>Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414397#M488270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with all my outstanding invoices(Customer, Inv Date and Amount) . I am trying to create an age analysis for this - current 30 days and 60 +.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a table with invoice as the dimension it works but when i want to summarize by customer it only calcs the ones with only one invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I use is the following:&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;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ageing]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= 31, Sum(InvoiceBal2), '') etc. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would assume the reason the summary per customer doesnt work is that it doesnt know what the ageing is per customer when there are multiple invoices with different ageing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion how to overcome this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414397#M488270</guid>
      <dc:creator />
      <dc:date>2013-01-11T11:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414398#M488271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Include the condition into the aggregation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt; Sum( &lt;/SPAN&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ageing]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= 31, &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;InvoiceBal2)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414398#M488271</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-11T11:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414399#M488272</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;Use aggr fuction with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414399#M488272</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-01-11T11:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414400#M488273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ageing]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=31&amp;gt;}InvoiceBal2) ?? like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414400#M488273</guid>
      <dc:creator />
      <dc:date>2013-01-11T11:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414401#M488274</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;I dont know the aggr function - can you give me examble please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it make a difference if ageing is a calculated field and how whould you change my expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ageing]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;lt;= 31, Sum(InvoiceBal2), '') &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414401#M488274</guid>
      <dc:creator />
      <dc:date>2013-01-11T11:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414402#M488275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to use a set expression instead the if, try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Ageing] &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {"&amp;lt;=31"} &amp;gt;} InvoiceBal2) &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414402#M488275</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-01-11T11:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414403#M488276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Does it make a difference because ageing is a calculated field? I get it from deducting the invoicedate from a variable.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;&amp;nbsp; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt; Nirav I am not to sure how the aggr function works - can you give me an examble? &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;EM&gt;&lt;SPAN style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 11:54:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414403#M488276</guid>
      <dc:creator />
      <dc:date>2013-01-11T11:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Table Expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414404#M488277</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;Syantax Aggr(Expression, GroupByFiledName)&lt;/P&gt;&lt;P&gt;Aggr( &lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;( {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; font-family: Arial; color: #800000;"&gt;[Ageing] &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 8pt; color: #737373; font-family: Arial;"&gt;= {"&amp;lt;=31"} &amp;gt;} InvoiceBal2) &lt;/SPAN&gt;, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;customer &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 12:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Table-Expression/m-p/414404#M488277</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-01-11T12:24:27Z</dc:date>
    </item>
  </channel>
</rss>

