<?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: Please help with Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74401#M458499</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have mentioned that the DG Product is a dimension (as is WeekCur).&amp;nbsp; That's why I'm having issues trying to sum the PPA_Flag - because it's not associated with DG Product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what it should be (without the DG Product dimension):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194280" alt="20180222.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194280_20180222.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Here's what I'm getting:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194281" alt="20180222.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/194281_20180222.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 21:22:20 GMT</pubDate>
    <dc:creator>jcampbell474</dc:creator>
    <dc:date>2018-02-22T21:22:20Z</dc:date>
    <item>
      <title>Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74399#M458497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a metric (Attach Rate %).&amp;nbsp; A good bit of labor would be involved if I modified the existing data model, so I've been trying to do it as an expression.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field DGFlag that is populated with a 1 on each row of DG Product.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another field PPA_Flag that is populated with a 1 in every row with PPA Product (also, in the state of VA).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is, each DGFlag is assocated with a DG product, so I can't sum the PPA_Flag as it's not associated with the DG product.&amp;nbsp; I've tried to 'break' the association and get a sum, but haven't had any luck.&amp;nbsp; I tried set analysis, but it only caclulates once, per object.&amp;nbsp; Also tried Sum(Total)...&amp;nbsp; No luck.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me if what I'm trying to do is possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some expressions that I tried:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;State={'VA'}&amp;gt;} DGFlag) / sum(TOTAL PPA_Flag)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;State={'VA'}&amp;gt;} DGFlag) / sum({&amp;lt;product=p({&amp;lt;product=p(product)&amp;gt;}product)&amp;gt;}PPA_Flag)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;State={'VA'}&amp;gt;} DGFlag) / (avg({&amp;lt;State={'VA'},product=&amp;gt;}PPAWeeklyTotal))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any/all help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74399#M458497</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2018-02-22T21:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74400#M458498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But what exactly are you trying to do? I am not sure I get that from your post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74400#M458498</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-22T21:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74401#M458499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have mentioned that the DG Product is a dimension (as is WeekCur).&amp;nbsp; That's why I'm having issues trying to sum the PPA_Flag - because it's not associated with DG Product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what it should be (without the DG Product dimension):&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194280" alt="20180222.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194280_20180222.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Here's what I'm getting:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="194281" alt="20180222.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/194281_20180222.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74401#M458499</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2018-02-22T21:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74402#M458500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, I think I just figured it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;State={'VA'}&amp;gt;} DGFlag) / sum(TOTAL &amp;lt;WeekCur&amp;gt; PPA_Flag)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it look okay to you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 21:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74402#M458500</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2018-02-22T21:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74403#M458501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes looks good to me....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 02:57:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74403#M458501</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-23T02:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74404#M458502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you need this TOTAL &amp;lt;WeekCur&amp;gt; since you only have one dimension. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 03:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74404#M458502</guid>
      <dc:creator>shilpan</dc:creator>
      <dc:date>2018-02-23T03:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74405#M458503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shilpan: But without the TOTAL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;WeekCur&amp;gt;&lt;/SPAN&gt; it didn't work.&lt;/P&gt;&lt;P&gt;As Jason mentioned that DG_Product is a Dimension as well, so he has two dimensions. he doesn't show it, but it might as well be affecting in the backgound. Also it might be, that he will add others as well when this is progressing.&lt;/P&gt;&lt;P&gt;There's nothing wrong with the TOTAL &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;WeekCur&amp;gt;&lt;/SPAN&gt;...though I see your point and in general it is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question to Jason would be: Does it work as expected now?&lt;/STRONG&gt; If so, please mark the post with the correct answer (even if in this case it came from yourself), so that others can see, that this is solved. If not, please tell us as well, so we might look into it further.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 07:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74405#M458503</guid>
      <dc:creator>katharinakostka</dc:creator>
      <dc:date>2018-02-23T07:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74406#M458504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it works as expected.&amp;nbsp; Thanks to everyone for their input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll mark it as Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 14:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-Expression/m-p/74406#M458504</guid>
      <dc:creator>jcampbell474</dc:creator>
      <dc:date>2018-02-23T14:17:07Z</dc:date>
    </item>
  </channel>
</rss>

