<?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: Using if vs. coding it in the set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-if-vs-coding-it-in-the-set-analysis/m-p/1097370#M941576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Further I would try to use RangeSum() function here to sum them:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;BOB = {'A'}, BOB_age = {'$(=DATE(vC))'}, age = {'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_A) * 100, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; line-height: 1.5em;"&gt;&lt;STRONG style="color: #575757;"&gt;Sum({$&amp;lt;BOB &lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;-&lt;/SPAN&gt;={'A'}, BOB_age = {'$(=DATE(vC))'}, age = {'&amp;gt;=16 &amp;lt;=25'}&amp;gt;} aging_B) * 100)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2016 18:14:36 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-01-15T18:14:36Z</dc:date>
    <item>
      <title>Using if vs. coding it in the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-vs-coding-it-in-the-set-analysis/m-p/1097368#M941574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a query the first one works but the second one does not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works-&lt;/P&gt;&lt;P&gt;if(BOB = 'A',&lt;BR /&gt;(sum({$&amp;lt;BOB_age={'$(=DATE(vC))'},age={'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_A) *100),&lt;BR /&gt;(sum({$&amp;lt;BOB_age={'$(=DATE(vC))'},age={'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_B) *100))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not work:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;BOB-={'A'},BOB_age={'$(=DATE(vC))'},age={'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_A) *100&lt;BR /&gt;+sum({$&amp;lt;BOB={'A'},BOB_age={'$(=DATE(vC))'},age={'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_B) *100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 16:53:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-vs-coding-it-in-the-set-analysis/m-p/1097368#M941574</guid>
      <dc:creator />
      <dc:date>2016-01-15T16:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using if vs. coding it in the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-vs-coding-it-in-the-set-analysis/m-p/1097369#M941575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Did you do it opposite?&lt;/SPAN&gt;&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;&lt;STRONG&gt;Sum({$&amp;lt;BOB ={'A'},BOB_age={'$(=DATE(vC))'},age={'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_A) *100&lt;/STRONG&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;STRONG style="color: #3d3d3d;"&gt;+Sum({$&amp;lt;BOB &lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;-&lt;/SPAN&gt;={'A'},BOB_age={'$(=DATE(vC))'},age={'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_B) *100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 18:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-vs-coding-it-in-the-set-analysis/m-p/1097369#M941575</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-15T18:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using if vs. coding it in the set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Using-if-vs-coding-it-in-the-set-analysis/m-p/1097370#M941576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Further I would try to use RangeSum() function here to sum them:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;RangeSum(&lt;/STRONG&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13px; font-style: inherit; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({$&amp;lt;BOB = {'A'}, BOB_age = {'$(=DATE(vC))'}, age = {'&amp;gt;=16 &amp;lt;=25'} &amp;gt;} aging_A) * 100, &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-family: inherit; line-height: 1.5em;"&gt;&lt;STRONG style="color: #575757;"&gt;Sum({$&amp;lt;BOB &lt;SPAN style="font-style: inherit; font-size: 12pt; font-family: inherit;"&gt;-&lt;/SPAN&gt;={'A'}, BOB_age = {'$(=DATE(vC))'}, age = {'&amp;gt;=16 &amp;lt;=25'}&amp;gt;} aging_B) * 100)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 18:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-if-vs-coding-it-in-the-set-analysis/m-p/1097370#M941576</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-15T18:14:36Z</dc:date>
    </item>
  </channel>
</rss>

