<?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: Set Expression between min and max in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433635#M161630</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;You have to remove the Dimensions min_kg, Max_kg else it will display the price all the weights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2012 10:44:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-13T10:44:06Z</dc:date>
    <item>
      <title>Set Expression between min and max</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433634#M161629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Can you help me with this:&lt;/P&gt;&lt;P&gt;I have a table showing price for kg, and I need to find the right price for the total weight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 306px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" width="115"&gt;min_kg&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="105"&gt;max_kg&lt;/TD&gt;&lt;TD class="xl70" style="border-left: none;" width="86"&gt;price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;45&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;2,99&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;45&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;300&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1,1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;300&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;500&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1,04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;500&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;999999999999&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;0,99&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried this formula, and it gives me nothing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;min_kg ={"&amp;lt;$TOTAL_WEIGHT"},max_kg=&lt;/P&gt;&lt;P&gt;{"&amp;gt;=$TOTAL_WEIGHT"}&amp;gt;} price)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this formula gives me the total for all the prices, but not one single line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TOTAL_WEIGHT= {"&amp;gt;$(min_kg)&amp;lt;=$(max_kg)"}&amp;gt;&lt;/P&gt;&lt;P&gt; } price)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 10:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433634#M161629</guid>
      <dc:creator />
      <dc:date>2012-12-13T10:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression between min and max</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433635#M161630</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;You have to remove the Dimensions min_kg, Max_kg else it will display the price all the weights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 10:44:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433635#M161630</guid>
      <dc:creator />
      <dc:date>2012-12-13T10:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression between min and max</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433636#M161631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi thanks. &lt;/P&gt;&lt;P&gt;But I need to find the right price. The TOTAL_WEIGHT is in a different table and there is no link between them. If customer A buys 350 kg he should pay 1,04 for the kg, but if he buys 25 kg he should pay 2,99 for each kg.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 10:48:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433636#M161631</guid>
      <dc:creator />
      <dc:date>2012-12-13T10:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression between min and max</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433637#M161632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't solve this with set analysis expressions since those are calculated once per chart and not per row. You can probably solve this in the load script using the intervalmatch function to match TOTAL_WEIGHT with the interval defined by min_kg and max_kg. That way you can match the correct price to the TOTAL_WEIGHT. Attached is an example that demonstrates the intervalmatch function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433637#M161632</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-13T12:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression between min and max</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433638#M161633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i thik it rt why this one i dont no&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433638#M161633</guid>
      <dc:creator />
      <dc:date>2012-12-13T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression between min and max</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433639#M161634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I will solve it in the load script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 12:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433639#M161634</guid>
      <dc:creator />
      <dc:date>2012-12-13T12:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression between min and max</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433640#M161635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try set intersection&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;=sum({$&amp;lt;min_kg ={"&amp;lt;$TOTAL_WEIGHT"}*{"&amp;gt;=$TOTAL_WEIGHT"}&amp;gt;} price)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-between-min-and-max/m-p/433640#M161635</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2012-12-13T13:19:32Z</dc:date>
    </item>
  </channel>
</rss>

