<?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 Boolean Functions in Set Analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Boolean-Functions-in-Set-Analysis/m-p/159942#M34384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Date (or Month, or anything Date-related) needs to be one of your Chart Dimensions, than you can't use Set Analysis - because Set Analysis is only calculated once for the whole chart.&lt;/P&gt;&lt;P&gt;Also, I'd recommend to simplify the condition InMonthToDate() and pre-calculate a flag in your load script: MTDFlag=1 for all dates in your calendar that satisfy this condition.&lt;/P&gt;&lt;P&gt;Then, if your chart doesn't have a date as a dimension, you can do something liket his:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MTDFlag={1], [Calc Ad?]={'YES'} &amp;gt;} Impressions)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Mar 2011 16:40:39 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2011-03-14T16:40:39Z</dc:date>
    <item>
      <title>Boolean Functions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Boolean-Functions-in-Set-Analysis/m-p/159941#M34383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have the following expression in a pivot table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;=SUM(IF(InMonthToDate(Date,Today()-1,0) AND [Calc Ad?]='YES',Impressions))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;To improve efficiency I want to convert this to a Set Analysis expression but can't see how. Any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 15:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Boolean-Functions-in-Set-Analysis/m-p/159941#M34383</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-03-14T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Boolean Functions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Boolean-Functions-in-Set-Analysis/m-p/159942#M34384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Date (or Month, or anything Date-related) needs to be one of your Chart Dimensions, than you can't use Set Analysis - because Set Analysis is only calculated once for the whole chart.&lt;/P&gt;&lt;P&gt;Also, I'd recommend to simplify the condition InMonthToDate() and pre-calculate a flag in your load script: MTDFlag=1 for all dates in your calendar that satisfy this condition.&lt;/P&gt;&lt;P&gt;Then, if your chart doesn't have a date as a dimension, you can do something liket his:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;MTDFlag={1], [Calc Ad?]={'YES'} &amp;gt;} Impressions)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 16:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Boolean-Functions-in-Set-Analysis/m-p/159942#M34384</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-03-14T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Boolean Functions in Set Analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/Boolean-Functions-in-Set-Analysis/m-p/159943#M34385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Oleg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 10:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Boolean-Functions-in-Set-Analysis/m-p/159943#M34385</guid>
      <dc:creator>Jason_Michaelides</dc:creator>
      <dc:date>2011-03-17T10:35:49Z</dc:date>
    </item>
  </channel>
</rss>

