<?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 Compare Prices greater than in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896545#M1217565</link>
    <description>&lt;P&gt;Hello together,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table with 4 different prices.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to see only the material where Price 4 is greater than one of the other prices 1-3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daniel1908_0-1645620202782.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72911iE75275DFC2B55147/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daniel1908_0-1645620202782.png" alt="Daniel1908_0-1645620202782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you help to get this in set analysis?&lt;/P&gt;
&lt;P&gt;Kind Regards,&amp;nbsp;&lt;BR /&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 12:50:39 GMT</pubDate>
    <dc:creator>Daniel1908</dc:creator>
    <dc:date>2022-02-23T12:50:39Z</dc:date>
    <item>
      <title>Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896545#M1217565</link>
      <description>&lt;P&gt;Hello together,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a table with 4 different prices.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to see only the material where Price 4 is greater than one of the other prices 1-3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daniel1908_0-1645620202782.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/72911iE75275DFC2B55147/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daniel1908_0-1645620202782.png" alt="Daniel1908_0-1645620202782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you help to get this in set analysis?&lt;/P&gt;
&lt;P&gt;Kind Regards,&amp;nbsp;&lt;BR /&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 12:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896545#M1217565</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2022-02-23T12:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896578#M1217566</link>
      <description>&lt;P&gt;I don't think that's possible within a classical set analysis but you could apply a normal condition - maybe with something like this:&lt;/P&gt;
&lt;P&gt;-([Price 4] &amp;gt; rangemax([Price 1],&amp;nbsp;[Price 2],&amp;nbsp;[Price 3])) as PriceFlag&lt;/P&gt;
&lt;P&gt;within the UI or like hinted as Flag within the data-model.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 13:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896578#M1217566</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-02-23T13:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896769#M1217579</link>
      <description>&lt;LI-CODE lang="markup"&gt;{$&amp;lt;Material={"=[Price 4]&amp;gt;[Price 1] or [Price 4]&amp;gt;[Price 2] or [Price 4]&amp;gt;[Price 3]"}&amp;gt;}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Feb 2022 19:55:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896769#M1217579</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-02-23T19:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896864#M1217585</link>
      <description>&lt;P&gt;Yes, it could be written within a set analysis syntax but logically it's an if-loop.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 06:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1896864#M1217585</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-02-24T06:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1897286#M1217598</link>
      <description>&lt;P&gt;It works if Price4 is greater Price1, but unfortunately not if price4 is only bigger than Price2 or Price3.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1897286#M1217598</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2022-02-24T17:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1897296#M1217599</link>
      <description>&lt;P&gt;Instead of rangemax() you could use rangemin() to check if it's greater than any of the other prices.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1897296#M1217599</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-02-24T17:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1897515#M1217609</link>
      <description>&lt;P&gt;Thanks Marcus, that worked&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 07:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1897515#M1217609</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2022-02-25T07:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1904094#M1217850</link>
      <description>&lt;P&gt;Hello together,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;([Price 4] &amp;gt; rangemin([Price 1],&amp;nbsp;[Price 2],&amp;nbsp;[Price 3])) as PriceFlag works fine.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now I have the problem, that some prices are based on different quantities. &lt;BR /&gt;Is it possible to divide the 2 values and create a new column?&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 540pt;" border="0" width="720" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="79.9167px" height="20" class="xl63" style="height: 15.0pt; width: 60pt;"&gt;Material&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-left: none; width: 60pt;"&gt;Price 1&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-left: none; width: 60pt;"&gt;Qty Price 1&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-left: none; width: 60pt;"&gt;Price 2&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-left: none; width: 60pt;"&gt;Qty Price 2&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-left: none; width: 60pt;"&gt;Price 3&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-left: none; width: 60pt;"&gt;Qty Price 3&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-left: none; width: 60pt;"&gt;Price 4&lt;/TD&gt;
&lt;TD width="79.9167px" class="xl63" style="border-left: none; width: 60pt;"&gt;Qty Price 4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="79.9167px" height="20" class="xl63" style="height: 15.0pt; border-top: none;"&gt;Bike&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-top: none; border-left: none;"&gt;300&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;
&lt;TD width="79.8333px" class="xl63" style="border-top: none; border-left: none;"&gt;400&lt;/TD&gt;
&lt;TD width="79.9167px" class="xl63" style="border-top: none; border-left: none;"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kind Regards,&amp;nbsp;&lt;BR /&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 13:47:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1904094#M1217850</guid>
      <dc:creator>Daniel1908</dc:creator>
      <dc:date>2022-03-11T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Compare Prices greater than</title>
      <link>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1904133#M1217852</link>
      <description>&lt;P&gt;I think a dividing-approach could be technically done but won't work from a logically point of view. Thinking your approach further you will need in the end to match the quantity and the prices on a single level and then a more or less complex comparing-logic with if-loops.&lt;/P&gt;
&lt;P&gt;Personally I would tend to a different approach by mapping the right price to each sales. This should be possible with a logic like an intervalmatch used. This means generating an interval-table with a from_quantity and to_quantity and the price. Then with a loop between them you will get a price for each possible quantity and this could be mapped to the sales.&lt;/P&gt;
&lt;P&gt;The main-idea behind it is here very well explained:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/IntervalMatch/ba-p/1464547" target="_blank"&gt;IntervalMatch - Qlik Community - 1464547&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 15:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Compare-Prices-greater-than/m-p/1904133#M1217852</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-03-11T15:05:39Z</dc:date>
    </item>
  </channel>
</rss>

