<?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 Set Analysis Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635073#M678987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression set up in a chart that works fine until I start drilling down on data, and I'm wondering if any of you can identify why this is happening. I'm assuming that it has to do with incorrect identifiers. Expression is shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;current_balance=P({1&amp;lt;loanType={'Type1'}, daysPastDue={"&amp;gt;=0&amp;lt;=10"}&amp;gt;}current_balance)&amp;gt;}current_balance)/(Sum({$&amp;lt;current_balance=P({1&amp;lt;loanType={'Type1'}&amp;gt;}current_balance)&amp;gt;}current_balance))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is calculate a % of current_balance by calculating the sum of current_balance of Type1 loans in the 0-10 daysPastDue range and dividing that by the sum of current_balance for all loans of that type. As I said above this works fine until I drill down on data. Is there any syntax that I need to change for this to work if I narrow down by other fields? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 17:07:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-15T17:07:45Z</dc:date>
    <item>
      <title>Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635073#M678987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression set up in a chart that works fine until I start drilling down on data, and I'm wondering if any of you can identify why this is happening. I'm assuming that it has to do with incorrect identifiers. Expression is shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;current_balance=P({1&amp;lt;loanType={'Type1'}, daysPastDue={"&amp;gt;=0&amp;lt;=10"}&amp;gt;}current_balance)&amp;gt;}current_balance)/(Sum({$&amp;lt;current_balance=P({1&amp;lt;loanType={'Type1'}&amp;gt;}current_balance)&amp;gt;}current_balance))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is calculate a % of current_balance by calculating the sum of current_balance of Type1 loans in the 0-10 daysPastDue range and dividing that by the sum of current_balance for all loans of that type. As I said above this works fine until I drill down on data. Is there any syntax that I need to change for this to work if I narrow down by other fields? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 17:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635073#M678987</guid>
      <dc:creator />
      <dc:date>2014-05-15T17:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635074#M678988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;current_balance=P({1&amp;lt;loanType={'Type1'}, daysPastDue={"&amp;gt;=0&amp;lt;=10"}&amp;gt;}current_balance)/(Sum({$&amp;lt;current_balance=P({1&amp;lt;loanType={'Type1'}&amp;gt;}current_balance))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 17:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635074#M678988</guid>
      <dc:creator />
      <dc:date>2014-05-15T17:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635075#M678989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's giving me an error in set modifier element function name when I use that expressions. Any Ideas on howto fix that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 17:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635075#M678989</guid>
      <dc:creator />
      <dc:date>2014-05-15T17:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Question</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635076#M678990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try with a simpler expression (without the P function) and check if it can do the job, like this:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;loanType={'Type1'}, daysPastDue = {&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"&amp;gt;=0&amp;lt;=10"}&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;gt;} current_balance) /&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;loanType={'Type1'}&lt;/SPAN&gt;&amp;gt;} current_balance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may want to use the TOTAL qualifier in the second part if you want to ignore the dimension of your pivot and thus considering the total current balance for type 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 17:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Question/m-p/635076#M678990</guid>
      <dc:creator />
      <dc:date>2014-05-15T17:30:20Z</dc:date>
    </item>
  </channel>
</rss>

