<?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: SUM IF question - using InQuarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576402#M741009</link>
    <description>&lt;P&gt;Thank you Sunny!&lt;/P&gt;&lt;P&gt;Indeed that works perfectly!&amp;nbsp; I had tried SO many iterations of the syntax and I was completely missing the "" in the brackets.&lt;/P&gt;&lt;P&gt;Cheers and Happy Friday!&lt;/P&gt;</description>
    <pubDate>Fri, 03 May 2019 13:22:40 GMT</pubDate>
    <dc:creator>data_RN</dc:creator>
    <dc:date>2019-05-03T13:22:40Z</dc:date>
    <item>
      <title>SUM IF question - using InQuarter</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576347#M741004</link>
      <description>&lt;P&gt;Hello All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I have an easy one for you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; I am hoping I am simply overthinking it...&lt;/P&gt;&lt;P&gt;I am trying to get a sum of the amount of products that have a launch date this quarter.&amp;nbsp; I have been able to flag the products as the dates being in the is quarter using:&lt;/P&gt;&lt;P&gt;InQuarter([Launch Date],Today(),0)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product Group&lt;/TD&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Launch Date&lt;/TD&gt;&lt;TD&gt;This Quarter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;-4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fruit&lt;/TD&gt;&lt;TD&gt;apples&lt;/TD&gt;&lt;TD&gt;12/31/2018&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fruit&lt;/TD&gt;&lt;TD&gt;bananas&lt;/TD&gt;&lt;TD&gt;1/15/2019&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vegetables&lt;/TD&gt;&lt;TD&gt;beet&lt;/TD&gt;&lt;TD&gt;4/20/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vegetables&lt;/TD&gt;&lt;TD&gt;carrot&lt;/TD&gt;&lt;TD&gt;4/1/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fruit&lt;/TD&gt;&lt;TD&gt;oranges&lt;/TD&gt;&lt;TD&gt;5/1/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vegetables&lt;/TD&gt;&lt;TD&gt;turnip&lt;/TD&gt;&lt;TD&gt;5/25/2019&lt;/TD&gt;&lt;TD&gt;-1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;But what I really want is&amp;nbsp; to show the number of Products Launching THIS quarter by Product group.&amp;nbsp; I know this is wrong, but something like this:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=SUM(if([Launch Da&lt;/SPAN&gt;te]&lt;SPAN&gt;&amp;nbsp;= InQuarter,Today(),[Product Group]))&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product Group&lt;/TD&gt;&lt;TD&gt;This Quarter&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Fruit&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Vegetables&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576347#M741004</guid>
      <dc:creator>data_RN</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF question - using InQuarter</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576349#M741005</link>
      <description>&lt;P&gt;If you have this flag within the data you could use something like:&lt;/P&gt;&lt;P&gt;count({&amp;lt; [This Quarter] = {-1}&amp;gt;} Product)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 12:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576349#M741005</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-03T12:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF question - using InQuarter</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576352#M741006</link>
      <description>&lt;P&gt;If you don't have a flag, than may be this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count({&amp;lt;[Launch Date] = {"=InQuarter([Launch Date],Today(),0)"}&amp;gt;}[Launch Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 12:06:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576352#M741006</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-05-03T12:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF question - using InQuarter</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576361#M741007</link>
      <description>&lt;P&gt;use a straight table with Dimension "Product Group" and Expression:&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" color="#0000ff"&gt;aggr&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;sum&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;if&lt;/FONT&gt;&lt;FONT size="1"&gt; (&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;InQuarter&lt;/FONT&gt;&lt;FONT size="1"&gt;(&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;[Launch Date]&lt;/FONT&gt;&lt;FONT size="1"&gt;,&lt;/FONT&gt;&lt;FONT size="1" color="#0000ff"&gt;Today&lt;/FONT&gt;&lt;FONT size="1"&gt;(),0)=-1,1)),&lt;/FONT&gt;&lt;FONT size="1" color="#800000"&gt;[Product Group]&lt;/FONT&gt;&lt;FONT size="1"&gt;) &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="1"&gt;and Show total and you get your desired output&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 12:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576361#M741007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-03T12:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF question - using InQuarter</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576393#M741008</link>
      <description>&lt;P&gt;Thanks Marcus,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error - "Error in set modifier ad hoc element list".&lt;/P&gt;&lt;P&gt;Attached is a screenshot.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'This Quarter' is using:&amp;nbsp;&amp;nbsp; InQuarter([Launch Date],Today(),0)&lt;/P&gt;&lt;P&gt;Is there something wrong with the 'This Quarter' expression that is creating the error?&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 13:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576393#M741008</guid>
      <dc:creator>data_RN</dc:creator>
      <dc:date>2019-05-03T13:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF question - using InQuarter</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576402#M741009</link>
      <description>&lt;P&gt;Thank you Sunny!&lt;/P&gt;&lt;P&gt;Indeed that works perfectly!&amp;nbsp; I had tried SO many iterations of the syntax and I was completely missing the "" in the brackets.&lt;/P&gt;&lt;P&gt;Cheers and Happy Friday!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 13:22:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576402#M741009</guid>
      <dc:creator>data_RN</dc:creator>
      <dc:date>2019-05-03T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: SUM IF question - using InQuarter</title>
      <link>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576409#M741010</link>
      <description>&lt;P&gt;Thank you Hrlinder!&lt;/P&gt;&lt;P&gt;Indeed this works too and the syntax isn't as complicated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 13:28:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SUM-IF-question-using-InQuarter/m-p/1576409#M741010</guid>
      <dc:creator>data_RN</dc:creator>
      <dc:date>2019-05-03T13:28:46Z</dc:date>
    </item>
  </channel>
</rss>

