<?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: Problem in passing function in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853672#M299266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will not like this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another way would be to hard-code the regions in your set analysis expression, something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(region='IN', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.9999990463257px;"&gt;Sum({&amp;lt;MEMBER_REGION={'IN'}&amp;gt;} TRADE_VALUE)/sum(TRADING_DAYS)/100000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(region='MO', &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.9999990463257px;"&gt;Sum({&amp;lt;MEMBER_REGION={'MO'}&amp;gt;} TRADE_VALUE)/sum(TRADING_DAYS)/100000,&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: 11.9999990463257px;"&gt;........ etc.......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not very dynamic i am afraid....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 09:41:04 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2015-06-09T09:41:04Z</dc:date>
    <item>
      <title>Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853666#M299260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;i am using a set analysis where i have to call a function in set analysis. as per my understanding the function will return the REGION which is associated with that particular STATE dimension and according to that condition calculate the T/O&lt;/P&gt;&lt;P&gt;The green mark is the REGION which is coming to each state. &lt;/P&gt;&lt;P&gt;the same REGION&amp;nbsp;&amp;nbsp;&amp;nbsp; i have to use in calulating the red marked column.&lt;/P&gt;&lt;P&gt;i have written below mention syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;MEMBER_REGION={'$(=MAXSTRING(REGION))'}&amp;gt;} TRADE_VALUE)/sum(TRADING_DAYS)/100000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE ISSUE ID OBSERVE THAT ITS USING 'WR' REGION IN ALL THE STATE BUT ALL STATE SHOULD BE CALCULATED ON BASE ON WHICH REGION IS ASSOCIATED TO IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me how to resolve this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG alt="setanalysis.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88773_setanalysis.png" style="height: 364px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:08:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853666#M299260</guid>
      <dc:creator />
      <dc:date>2015-06-09T09:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853667#M299261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to apply set analysis per row which is not possible. Set Analysis is calculated on a chart level not per row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But try this, maybe it works :&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;Sum({&amp;lt;MEMBER_REGION={'$(=Only(REGION))'}&amp;gt;} TRADE_VALUE)/sum(TRADING_DAYS)/100000&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:11:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853667#M299261</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-06-09T09:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853668#M299262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply use the region as dimension and in presentation tab hide that dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853668#M299262</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2015-06-09T09:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853669#M299263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;But that is also not working...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853669#M299263</guid>
      <dc:creator />
      <dc:date>2015-06-09T09:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853670#M299264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is difference between MEMBER_REGION and REGION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGION is associated to STATE like ( WB,Assam,Orissa is part of ER ( Eastern Region)&lt;/P&gt;&lt;P&gt;MEMBER_REGION is associated to MEMBERS. &lt;/P&gt;&lt;P&gt;SO if any MEMBER is associated to ER then he is native members of ER REGION and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus i have to calculated Native T/O(lakh) and NON Native T/O(Lakh) any MEMBER can place trade from anywhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853670#M299264</guid>
      <dc:creator />
      <dc:date>2015-06-09T09:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853671#M299265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is any other way to achieve ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853671#M299265</guid>
      <dc:creator />
      <dc:date>2015-06-09T09:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853672#M299266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will not like this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another way would be to hard-code the regions in your set analysis expression, something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(region='IN', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.9999990463257px;"&gt;Sum({&amp;lt;MEMBER_REGION={'IN'}&amp;gt;} TRADE_VALUE)/sum(TRADING_DAYS)/100000,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if(region='MO', &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 11.9999990463257px;"&gt;Sum({&amp;lt;MEMBER_REGION={'MO'}&amp;gt;} TRADE_VALUE)/sum(TRADING_DAYS)/100000,&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: 11.9999990463257px;"&gt;........ etc.......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not very dynamic i am afraid....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853672#M299266</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2015-06-09T09:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853673#M299267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a sum(If()) as set analysis will not work as explained above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(If(MEMBER_REGION = MaxString(REGION), TRADE_VALUE)), State) / Sum(TRADING_DAYS) / 100000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you could change the load script to add a flag , but without knowing the full details of your data model it is hard to be specific. Then you could use the flag like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Flag = {1}&amp;gt;} TRADE_VALUE) / Sum(TRADING_DAYS) / 100000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853673#M299267</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-09T09:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853674#M299268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If each state has only a single REGION, then I would replace MaxString(REGION) with Only(REGION) in my expression above&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 09:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853674#M299268</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-06-09T09:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in passing function in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853675#M299269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i had not tried yet.. but will try later.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 10:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-passing-function-in-set-analysis/m-p/853675#M299269</guid>
      <dc:creator />
      <dc:date>2015-06-09T10:18:02Z</dc:date>
    </item>
  </channel>
</rss>

