<?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: Multiple Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289932#M403486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using boolean operator AND?&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;=SUM(if([Trans Date]=(nwEVENTDTE-0) &lt;STRONG&gt;and promoCDE = ADULT&lt;/STRONG&gt;, [Net Sold Qty]))&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;If ADULT is not a field name, but a literal:&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM(if([Trans Date]=(nwEVENTDTE-0) &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and promoCDE = 'ADULT'&lt;/STRONG&gt;, [Net Sold Qty]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 20:58:38 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-03-01T20:58:38Z</dc:date>
    <item>
      <title>Multiple Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289931#M403485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression, =SUM(if([Trans Date]=(nwEVENTDTE-0), [Net Sold Qty]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I would like to add in another expression here where promoCDE=ADULT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would the proper structure of this be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 20:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289931#M403485</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-03-01T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289932#M403486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using boolean operator AND?&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;=SUM(if([Trans Date]=(nwEVENTDTE-0) &lt;STRONG&gt;and promoCDE = ADULT&lt;/STRONG&gt;, [Net Sold Qty]))&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;If ADULT is not a field name, but a literal:&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-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=SUM(if([Trans Date]=(nwEVENTDTE-0) &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;and promoCDE = 'ADULT'&lt;/STRONG&gt;, [Net Sold Qty]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 20:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289932#M403486</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-01T20:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289933#M403487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are also more advanced options to filter your data set, like set analysis, but start simple:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3807"&gt;Conditional Aggregations&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4076"&gt;A Primer on Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 21:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289933#M403487</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-03-01T21:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289934#M403488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ADULT was a literal, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 21:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289934#M403488</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-03-01T21:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289935#M403489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;In your previous thread with set analysis question you are trying to compare [Trans Date] = (nwEVENTDTE -1)&lt;/P&gt;&lt;P&gt;Here when ever you subtract a date field with an integer you will get an integer as a result so for example if you do nwEVENTDTE-1 gives you some number like 45655 which is not equal to your Trans Date so we have to explicitly format the number to Date. For the below you don't need 0 to subtract. Hope this makes sense. &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;=SUM(if([Trans Date]= nwEVENTDTE AND &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;promoCDE = 'ADULT'&lt;/SPAN&gt;, [Net Sold Qty])) &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;OR &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;= &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SUM( {&amp;lt; YourkeyID = { " = [Trans Date] = nwEVENTDTE" }, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;promoCDE = {'ADULT'}&amp;nbsp; &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; [Net Sold Qty]) &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 21:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Expressions/m-p/1289935#M403489</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-03-01T21:05:28Z</dc:date>
    </item>
  </channel>
</rss>

