<?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: Combining two different conditions in set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783072#M60980</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112"&gt;@agigliotti&lt;/a&gt;&amp;nbsp;, of course.&lt;BR /&gt;&lt;BR /&gt;What I want to do is: I want to calculate the percentage (Sample / Total) from previous year, but as Total can be 0 (it's not in my example, but in my original file), I want to prevent destroying mathematics by only picking those lines where Total is bigger than 0.&lt;/P&gt;&lt;P&gt;In this case by the way the equation shows 0. After restarting the file I'm actually working on, this also shows 0. What did I miss?&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 15:06:56 GMT</pubDate>
    <dc:creator>hppflpp</dc:creator>
    <dc:date>2021-02-16T15:06:56Z</dc:date>
    <item>
      <title>Combining two different conditions in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783019#M60973</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding set analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calculate a percentage of a sample from the total and display only data from previous year.&amp;nbsp;&lt;BR /&gt;As Total can't be 0, I want to prevent this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a long research, I thought this should be working:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;StatYear={$(=max(StatYear)-1)}&amp;gt;*&amp;lt;Total = {"&amp;gt;0"}&amp;gt;} [Sample]/[Total])&lt;/P&gt;&lt;P&gt;While the formula seems ok regarding syntax, the output can't be correct, numbers are way too high.&amp;nbsp;&lt;BR /&gt;I can't imagine what's happening there and I don't know how to fix this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 13:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783019#M60973</guid>
      <dc:creator>hppflpp</dc:creator>
      <dc:date>2021-02-16T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two different conditions in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783034#M60974</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/94303"&gt;@hppflpp&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;To me what you are trying to achieve it's not clear, could you post a sample app with mock data?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 14:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783034#M60974</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-02-16T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two different conditions in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783072#M60980</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/112"&gt;@agigliotti&lt;/a&gt;&amp;nbsp;, of course.&lt;BR /&gt;&lt;BR /&gt;What I want to do is: I want to calculate the percentage (Sample / Total) from previous year, but as Total can be 0 (it's not in my example, but in my original file), I want to prevent destroying mathematics by only picking those lines where Total is bigger than 0.&lt;/P&gt;&lt;P&gt;In this case by the way the equation shows 0. After restarting the file I'm actually working on, this also shows 0. What did I miss?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 15:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783072#M60980</guid>
      <dc:creator>hppflpp</dc:creator>
      <dc:date>2021-02-16T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Combining two different conditions in set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783088#M60983</link>
      <description>&lt;P&gt;maybe this:&lt;/P&gt;&lt;P&gt;=Sum(Sample)&lt;BR /&gt;/&lt;BR /&gt;Sum( {&amp;lt; StatYear = {$(=max(StatYear)-1)} &amp;gt; TOTAL Sample )&lt;/P&gt;&lt;P&gt;I hope it can help.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 15:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Combining-two-different-conditions-in-set-analysis/m-p/1783088#M60983</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2021-02-16T15:33:05Z</dc:date>
    </item>
  </channel>
</rss>

