<?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: Comparing different price values from a single product in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341846#M413263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help. The solution should consider all kind of products. In my example I listed only product A and B. But for the case I have more products the solution should sum up all product to the mentioned conditions. So I think it would be really time-consuming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2017 09:37:56 GMT</pubDate>
    <dc:creator>thanhphongle</dc:creator>
    <dc:date>2017-08-03T09:37:56Z</dc:date>
    <item>
      <title>Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341842#M413259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Date&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Price&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.01.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.01.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;95 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.02.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;95 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.03.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.04.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;80 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.01.2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;49 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.01.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1000 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.01.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;950 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.02.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;950 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.03.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;800 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.04.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;800 €&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01.01.2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;300 €&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there a way to compare different price values from particular products? For example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if min(Price of a Product) is &amp;lt;= 50 % of max(Price of Product) , then sum(All min(Price of a Product) is &amp;lt;= 50 % of max(Price of Product))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;&lt;/P&gt;&lt;P&gt;Step 1&lt;/P&gt;&lt;P&gt;min[Product(A)] = 49€&amp;nbsp; is 50% smaller or more than 50% smaller than max[Product(A)]=100 €&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min[Product(B)] = 300€&amp;nbsp; is 50% smaller or more than 50% smaller than max[Product(B)]=1000 €&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum up all products&amp;nbsp; 49€ + 300€ = 349€&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope anyone can help me out here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341842#M413259</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2017-08-03T09:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341843#M413260</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;Where do you want to show the Final sum, do I need to add an extra column, or replace the min value for each product?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Pratyush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341843#M413260</guid>
      <dc:creator>prat1507</dc:creator>
      <dc:date>2017-08-03T09:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341844#M413261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's proceed with order, &lt;SPAN style="font-size: 10pt;"&gt;first we need the mins and the maxs:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;min({$&amp;lt;Product={"A"}&amp;gt;}price)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;min({$&amp;lt;Product={"B"}&amp;gt;}price)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;max({$&amp;lt;Product={"A"}&amp;gt;}price)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;max({$&amp;lt;Product={"B"}&amp;gt;}price)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I've understood well, maybe this could work (I've not tested yet).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if( &lt;SPAN style="font-size: 13.3333px;"&gt;min({$&amp;lt;Product={"A"}&amp;gt;}price)&amp;lt;=&lt;SPAN style="font-size: 13.3333px;"&gt;max({$&amp;lt;Product={"A"}&amp;gt;}price)*0.5,&lt;SPAN style="font-size: 13.3333px;"&gt;min({$&amp;lt;Product={"A"}&amp;gt;}price)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;+&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;if( &lt;SPAN style="font-size: 13.3333px;"&gt;min({$&amp;lt;Product={"B"}&amp;gt;}price)&amp;lt;=&lt;SPAN style="font-size: 13.3333px;"&gt;max({$&amp;lt;Product={"B"}&amp;gt;}price)*0.5,&lt;SPAN style="font-size: 13.3333px;"&gt;min({$&amp;lt;Product={"B"}&amp;gt;}price)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I think that with a proper set analysis it could be better.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341844#M413261</guid>
      <dc:creator>simotrab</dc:creator>
      <dc:date>2017-08-03T09:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341845#M413262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Price&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;A class="jive-link-thread-small" data-containerid="2051" data-containertype="14" data-objectid="269939" data-objecttype="1" href="https://community.qlik.com/thread/269939"&gt;https://community.qlik.com/thread/269939&lt;/A&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(html, codepage is 1252, embedded labels, table is @1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;LOAD Product,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(Price) as MinPrice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Price) as MaxPrice&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group by Product;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(MinPrice/MaxPrice&amp;lt;=0.5,1) as Flag&lt;/P&gt;&lt;P&gt;Resident Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Final)&lt;/P&gt;&lt;P&gt;LOAD sum(DISTINCT MinPrice) as SumofAllProductPrice&lt;/P&gt;&lt;P&gt;Resident Final&lt;/P&gt;&lt;P&gt;where Flag=1;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/172355_Capture.JPG" style="height: 273px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341845#M413262</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-03T09:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341846#M413263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Simone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your help. The solution should consider all kind of products. In my example I listed only product A and B. But for the case I have more products the solution should sum up all product to the mentioned conditions. So I think it would be really time-consuming&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341846#M413263</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2017-08-03T09:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341847#M413264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pratyush,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I' d like to show the sum in a textbox. The solution should consider all kind of products not only A and B. The product A and B was just an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341847#M413264</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2017-08-03T09:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341848#M413265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kushal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm about to try your solution. Is there another way to solve my problem instead of manipulating the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341848#M413265</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2017-08-03T09:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341849#M413266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This expression should work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(aggr(if(min(Price)/max(Price)&amp;lt;=0.5,min(Price)),Product))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 09:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341849#M413266</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-03T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341850#M413267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is expression works great!!&lt;/P&gt;&lt;P&gt;Thank you very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341850#M413267</guid>
      <dc:creator>thanhphongle</dc:creator>
      <dc:date>2017-08-03T10:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing different price values from a single product</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341851#M413268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that it worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 10:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-different-price-values-from-a-single-product/m-p/1341851#M413268</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-03T10:34:37Z</dc:date>
    </item>
  </channel>
</rss>

