<?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: Ratio on value from two selected dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344565#M127305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For my point of view you can't do this.&lt;/P&gt;&lt;P&gt;You have to create one expression per ratio (state1&amp;amp;state2, state2&amp;amp;state3...).&lt;/P&gt;&lt;P&gt;Or you can use ValueList to create a manual dimension and then test the result in your expression but it seems to be complicated for the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 09:02:08 GMT</pubDate>
    <dc:creator>vincent_ardiet</dc:creator>
    <dc:date>2012-06-11T09:02:08Z</dc:date>
    <item>
      <title>Ratio on value from two selected dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344560#M127300</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;I have a list of items together with a price and what i want to do is choose two items and get the ratio between these to items price. And i want to present this in a chart where the dimension is the two items together, hence "Item 1 / Item 2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 13:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344560#M127300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-08T13:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio on value from two selected dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344561#M127301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can use alternate states to do this.&lt;/P&gt;&lt;P&gt;Define a new alternate state (settings/document properties/general : alternate states button) and create two listboxes with the same dimension.&lt;/P&gt;&lt;P&gt;Associate one of those listboxes to the alternate state you have defined (list box properties/general).&lt;/P&gt;&lt;P&gt;Then in your chart, you can use set analysis to compare the two selections for example like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(amount) / sum({$&amp;lt;country=p({nameOfAlternateStateJustCreated} country)&amp;gt;} amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use {$&amp;lt;country=p({nameOfAlternateStateJustCreated} country)&amp;gt;} in order to just redefine the dimension country and to keep all others dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to know more, don't hesitate to have a look to the "whats new in Qlikview11" application in the sheet "Sales Overlap".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 14:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344561#M127301</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-06-08T14:38:53Z</dc:date>
    </item>
    <item>
      <title>Ratio on value from two selected dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344562#M127302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do i write if i want to show the outcome in a straight table? e.g. like this, dimension is both states;&lt;/P&gt;&lt;P&gt;Default Dimension&amp;amp;' - '&amp;amp;Alternate Dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i don't know how to get the Alternate Dimension in the dimension. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 07:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344562#M127302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-11T07:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio on value from two selected dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344563#M127303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use "concat" like this in the label on your expression or of your dimension :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concat(distinct country,';') &amp;amp;' - '&amp;amp; concat({$&amp;lt;country=p({nameOfAlternateStateJustCreated} country)&amp;gt;} distinct country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 07:39:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344563#M127303</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-06-11T07:39:16Z</dc:date>
    </item>
    <item>
      <title>Ratio on value from two selected dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344564#M127304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but the problem is that i want the dimension to be the result of this expression, not the lable of the dimesion. e.g. if i have severlat alternate states i want to list them like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ratio year 1 (expression)&lt;/P&gt;&lt;P&gt;State1 &amp;amp; State 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.99&lt;/P&gt;&lt;P&gt;State 2 &amp;amp; State 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.86&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 07:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344564#M127304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-06-11T07:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ratio on value from two selected dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344565#M127305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For my point of view you can't do this.&lt;/P&gt;&lt;P&gt;You have to create one expression per ratio (state1&amp;amp;state2, state2&amp;amp;state3...).&lt;/P&gt;&lt;P&gt;Or you can use ValueList to create a manual dimension and then test the result in your expression but it seems to be complicated for the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 09:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ratio-on-value-from-two-selected-dimensions/m-p/344565#M127305</guid>
      <dc:creator>vincent_ardiet</dc:creator>
      <dc:date>2012-06-11T09:02:08Z</dc:date>
    </item>
  </channel>
</rss>

