<?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 Problem with set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935408#M322962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem with set analysis in the following expression.&lt;/P&gt;&lt;P&gt;(sum(SALES_AMT_FPA)-Sum(SALES_QTY*PRICE_LIST))/sum(SALES_AMT_FPA)&amp;nbsp; in the number a have click the option&lt;/P&gt;&lt;P&gt;Show in Percent (%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i give like above the results are correct if i choose the date before udate&lt;/P&gt;&lt;P&gt;how can i have the same results without giving anything with set analysis ?&lt;/P&gt;&lt;P&gt;I have tried this &lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;SALES_DATE={'$(PREVIOUS_UDATE)'},SALES_YEAR=,SALES_MONTH=&amp;gt;} ((SALES_AMT_FPA)-(SALES_QTY*PRICE_LIST))/(SALES_AMT_FPA)) but the results are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 21:42:47 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2015-12-15T21:42:47Z</dc:date>
    <item>
      <title>Problem with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935408#M322962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing a problem with set analysis in the following expression.&lt;/P&gt;&lt;P&gt;(sum(SALES_AMT_FPA)-Sum(SALES_QTY*PRICE_LIST))/sum(SALES_AMT_FPA)&amp;nbsp; in the number a have click the option&lt;/P&gt;&lt;P&gt;Show in Percent (%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i give like above the results are correct if i choose the date before udate&lt;/P&gt;&lt;P&gt;how can i have the same results without giving anything with set analysis ?&lt;/P&gt;&lt;P&gt;I have tried this &lt;/P&gt;&lt;P&gt;=SUM({&amp;lt;SALES_DATE={'$(PREVIOUS_UDATE)'},SALES_YEAR=,SALES_MONTH=&amp;gt;} ((SALES_AMT_FPA)-(SALES_QTY*PRICE_LIST))/(SALES_AMT_FPA)) but the results are wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935408#M322962</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2015-12-15T21:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935409#M322963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to help without knowing too much about your data model / data / expression context. So, if possible, upload a small sample QVW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, add the set expression to each aggregation function, try like&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;/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;sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;SALES_DATE={'$(PREVIOUS_UDATE)'},SALES_YEAR=,SALES_MONTH=&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;SALES_AMT_FPA)&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;-Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;SALES_DATE={'$(PREVIOUS_UDATE)'},SALES_YEAR=,SALES_MONTH=&amp;gt;} &lt;/SPAN&gt;SALES_QTY*PRICE_LIST)&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;/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;/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;sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{&amp;lt;SALES_DATE={'$(PREVIOUS_UDATE)'},SALES_YEAR=,SALES_MONTH=&amp;gt;} &lt;/SPAN&gt;SALES_AMT_FPA)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 21:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935409#M322963</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-15T21:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935410#M322964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello swuehl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also incorrect results with this expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 22:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935410#M322964</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2015-12-15T22:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935411#M322965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI&gt;Try hardcoding the date in the set expression, ie replace your variable with an actual date&lt;/LI&gt;&lt;LI&gt;Make sure that the variable PREVIOUS_UDATE has the correct format so that it matches the format of SALES_DATE&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any luck?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 08:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935411#M322965</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2015-12-16T08:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935412#M322966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try this,&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;BR /&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;=SUM({&amp;lt;SALES_DATE={"=$(PREVIOUS_UDATE)"},SALES_YEAR=,SALES_MONTH=&amp;gt;} ((SALES_AMT_FPA)-(SALES_QTY*PRICE_LIST))/(SALES_AMT_FPA))&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;BR /&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;Regards,&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;Anjali Gupta&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 08:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-set-analysis/m-p/935412#M322966</guid>
      <dc:creator />
      <dc:date>2015-12-16T08:53:41Z</dc:date>
    </item>
  </channel>
</rss>

