<?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 If statements and aggrigates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statements-and-aggrigates/m-p/491374#M183613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with customers, then data set type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each month we receive data from these customers of various data set types. I want to have a gauge to show that we've received last month's data ok for each customer, and each data set type that we've received before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this as the expression in the pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Max({&amp;lt;Indirects.Year={$(=Year(AddMonths(Today(), -1)))}&amp;gt;} Indirects.Month) = Num(Month(AddMonths(Today(), -1))) And&amp;nbsp;&amp;nbsp; Max(Indirects.Year) = Num(Year(AddMonths(Today(), -1))),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works ok when drilling down to the detail, but if I collapse the data set type dimension then I get "1" if any of the data sets are ok, rather than if all are ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is a "0" for the customer row if any data set type row has a "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 07:55:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-26T07:55:28Z</dc:date>
    <item>
      <title>If statements and aggrigates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statements-and-aggrigates/m-p/491374#M183613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table with customers, then data set type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each month we receive data from these customers of various data set types. I want to have a gauge to show that we've received last month's data ok for each customer, and each data set type that we've received before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this as the expression in the pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Max({&amp;lt;Indirects.Year={$(=Year(AddMonths(Today(), -1)))}&amp;gt;} Indirects.Month) = Num(Month(AddMonths(Today(), -1))) And&amp;nbsp;&amp;nbsp; Max(Indirects.Year) = Num(Year(AddMonths(Today(), -1))),1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works ok when drilling down to the detail, but if I collapse the data set type dimension then I get "1" if any of the data sets are ok, rather than if all are ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is a "0" for the customer row if any data set type row has a "0".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 07:55:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statements-and-aggrigates/m-p/491374#M183613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-26T07:55:28Z</dc:date>
    </item>
  </channel>
</rss>

