<?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: General SA Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299623#M110993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Mady,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have a look at the attached application.&amp;nbsp; You need to go for $ sign expansion on the field names.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your formule should be something like as follows.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; =sum($(=Analysis)*Conversion)/sum($(=Analysis))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;- Sridhar&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2011 05:14:16 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-06-20T05:14:16Z</dc:date>
    <item>
      <title>General SA Query</title>
      <link>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299620#M110990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below query which I want to write in Set Analysis. The Analysis here is a Dimension which has Value and Number fields... WA_LTV is a already calculated field in my DB and the Dimension in this chart is the date...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Analysis = 'Value' or 'Number', selected (value or number) * WA_LTV/ sum(value or number))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will provide more details if required, Thanks in Advance,&lt;/P&gt;&lt;P&gt;Mady&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 16:22:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299620#M110990</guid>
      <dc:creator />
      <dc:date>2011-06-17T16:22:21Z</dc:date>
    </item>
    <item>
      <title>General SA Query</title>
      <link>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299621#M110991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Give us more details and sample data. What you mean by Value or Number. Will have the field information itself as Value or number?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;i could convert your above expression as such in to set analysis like below.I`m assuming [value or number] as field name.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum({&amp;lt;Analysis = { 'Value','Number'}&amp;gt;} [value or number]*WA_LTV) / sum({&amp;lt;Analysis = { 'Value','Number'}&amp;gt;} [value or number])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Not sure this is going to help you. &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if this is not correct, please&amp;nbsp; give us sample data and more explanation.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;- Sridhar&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 16:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299621#M110991</guid>
      <dc:creator />
      <dc:date>2011-06-17T16:48:26Z</dc:date>
    </item>
    <item>
      <title>General SA Query</title>
      <link>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299622#M110992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello Sridhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I explained, the Value and Number are fields in Analysis. So if I select the Value in the selection box, it should pick up Value, wherever I mentioned Value or Number. If I pick Number then it should calculate the formula for the number. Its Either Value or Number whatever the end user selects has to drive the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2011 16:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299622#M110992</guid>
      <dc:creator />
      <dc:date>2011-06-17T16:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: General SA Query</title>
      <link>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299623#M110993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Mady,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Have a look at the attached application.&amp;nbsp; You need to go for $ sign expansion on the field names.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your formule should be something like as follows.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; =sum($(=Analysis)*Conversion)/sum($(=Analysis))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;- Sridhar&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 05:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/General-SA-Query/m-p/299623#M110993</guid>
      <dc:creator />
      <dc:date>2011-06-20T05:14:16Z</dc:date>
    </item>
  </channel>
</rss>

