<?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: counting documents with if criteria in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766429#M472732</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;Could you please upload the sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 14:29:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-19T14:29:44Z</dc:date>
    <item>
      <title>counting documents with if criteria</title>
      <link>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766428#M472731</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 despair of this... i'm trying to count Documents with a if-condition in a Text-Field. in a table i also created i set a boolean 1, if date one is higher then date today(). (just to check if my text-field counting works)&amp;nbsp; The Dimension of this table are the document numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the textfield i'm unable to run the same expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(today()&amp;gt;=max([Bestellungen.Date of Shipment])+45,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need the max() statement, because every document contains a few [Date of Shipment] - Dates and i only need the highest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope you can understand what my problem is, thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766428#M472731</guid>
      <dc:creator />
      <dc:date>2014-12-19T14:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: counting documents with if criteria</title>
      <link>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766429#M472732</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;Could you please upload the sample file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766429#M472732</guid>
      <dc:creator />
      <dc:date>2014-12-19T14:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: counting documents with if criteria</title>
      <link>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766430#M472733</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;here is the sample file!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 15:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766430#M472733</guid>
      <dc:creator />
      <dc:date>2014-12-19T15:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: counting documents with if criteria</title>
      <link>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766431#M472734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to do the count in the dimensionless textbox, you need to use aggr() to tell QV what to iterate over. So reusing your working expression from the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(max([max. Verschiffung])+45&amp;lt;= today(),1,0),[Bestellungen.Document No_]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or simplifying it a bit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -max([max. Verschiffung])+45&amp;lt;= today()&lt;/P&gt;&lt;P&gt;&amp;nbsp; ,[Bestellungen.Document No_])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 19:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/counting-documents-with-if-criteria/m-p/766431#M472734</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-12-19T19:47:13Z</dc:date>
    </item>
  </channel>
</rss>

