<?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: Formula Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567746#M1111455</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jared! I played around with both ways and they both give me what I wanted. I appreciate the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Feb 2014 19:57:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-25T19:57:33Z</dc:date>
    <item>
      <title>Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567739#M1111448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If i was looking to implement an or statement for a specific month within a dataset, how would i write that? My or statement doesnt seem to be working so i havent yet added in a month...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far i have:&lt;/P&gt;&lt;P&gt;=If([Sales Office] = 'Canada' or [Sales Office] = 'USA', sum(NetDollars))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Parrish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567739#M1111448</guid>
      <dc:creator />
      <dc:date>2014-02-25T18:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567740#M1111449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not some set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Sales Office] = {'Canada', 'USA'}&amp;gt;}NetDollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that won't work, could you elaborate a little more?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:47:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567740#M1111449</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-25T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567741#M1111450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parrish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The correct way is&lt;/P&gt;&lt;P&gt;sum(If([Sales Office] = 'Canada' or [Sales Office] = 'USA', NetDollars))&lt;/P&gt;&lt;P&gt;or better&lt;/P&gt;&lt;P&gt;sum(If(match([Sales Office],'Canada','USA'), NetDollars))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567741#M1111450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-25T18:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567742#M1111451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Sales Office]={'Canada', 'USA'}, Month={'Jan'}&amp;gt;} NetDollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also make month dynamic by doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;[Sales Office]={'Canada', 'USA'}, Month={$(=Max(Month)-n)}&amp;gt;} NetDollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where N is how many months forward or back you want.&amp;nbsp; If you just want current month then you dont need the n portion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:49:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567742#M1111451</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2014-02-25T18:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567743#M1111452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Parrish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't write expressions on your own ways. They have a proper format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use any of the below mentioned codes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) =Sum(If(([Sales Office] = 'Canada' OR [Sales Office] = 'USA') AND (Month='Feb'),NetDollars))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) =Sum(If(wildmatch([Sales Office],'Canada','USA'),NetDollars))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) =Sum({&amp;lt;[Sales Office] = {'Canada', 'USA'},Month='Feb'&amp;gt;}NetDollars)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aviral Nag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567743#M1111452</guid>
      <dc:creator>aveeeeeee7en</dc:creator>
      <dc:date>2014-02-25T18:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567744#M1111453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have to use set analysis instead of an ‘or’ statement? I know I would need to use it to specify a month, but I know I have used an ‘or’ statement in a listbox before to show only certain countries. Also, if my date was “last February” , would I just replace ‘Jan’ with that number? I feel like maybe I would need to do a date formula…&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567744#M1111453</guid>
      <dc:creator />
      <dc:date>2014-02-25T18:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567745#M1111454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In response to your first question.&amp;nbsp; You couldve either used set analysis or an if statement, both wouldve worked.&amp;nbsp; As for your requirement to see last February, do you always want to see 12 months ago or does this change?&amp;nbsp; If it is always "this month but from last year" you could work that logic into your set analysis (or if statement).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 19:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567745#M1111454</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2014-02-25T19:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formula Question</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567746#M1111455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jared! I played around with both ways and they both give me what I wanted. I appreciate the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 19:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-Question/m-p/567746#M1111455</guid>
      <dc:creator />
      <dc:date>2014-02-25T19:57:33Z</dc:date>
    </item>
  </channel>
</rss>

