<?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 Please help with intervals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Please-help-with-intervals/m-p/1531444#M748193</link>
    <description>&lt;P&gt;Good day!&amp;nbsp;I am looking for the solution.&lt;/P&gt;&lt;P&gt;I have a table like TABLE_1 with sales contract parameters:&lt;/P&gt;&lt;P&gt;Client&amp;nbsp; &amp;nbsp;Min_Quantity&amp;nbsp; &amp;nbsp;Price&lt;/P&gt;&lt;P&gt;John&amp;nbsp; &amp;nbsp; 1&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; 20 Eiro&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; 2&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; 10 Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; 5&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; 5&amp;nbsp;Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;1&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;15&amp;nbsp;Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;3&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;10&amp;nbsp;Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I have TABLE_2 with exact sales data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Client&amp;nbsp; &amp;nbsp;Sold&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to compare these two table in order to calculate correct price based on the following logic:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;IF John bought at least 5 Kg, his price would be 5 Eiro,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then IF John bought at least 2 Kg, his price would be 10 Eiro,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&amp;nbsp;IF John bought at least 1 Kg, his price would be 20 Eiro,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;else ... (can make Null() value right now, but in fact have to be 20 Eiro)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to this logic, the result have to be like in Table_3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Client&amp;nbsp; &amp;nbsp; Correct Price&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp;20 Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;10 Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to understan, how to calculate Table 3&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:43:58 GMT</pubDate>
    <dc:creator>sculptorlv</dc:creator>
    <dc:date>2024-11-16T04:43:58Z</dc:date>
    <item>
      <title>Please help with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-intervals/m-p/1531444#M748193</link>
      <description>&lt;P&gt;Good day!&amp;nbsp;I am looking for the solution.&lt;/P&gt;&lt;P&gt;I have a table like TABLE_1 with sales contract parameters:&lt;/P&gt;&lt;P&gt;Client&amp;nbsp; &amp;nbsp;Min_Quantity&amp;nbsp; &amp;nbsp;Price&lt;/P&gt;&lt;P&gt;John&amp;nbsp; &amp;nbsp; 1&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; 20 Eiro&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; 2&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; 10 Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; 5&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; 5&amp;nbsp;Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;1&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;15&amp;nbsp;Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;3&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;10&amp;nbsp;Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I have TABLE_2 with exact sales data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Client&amp;nbsp; &amp;nbsp;Sold&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to compare these two table in order to calculate correct price based on the following logic:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;IF John bought at least 5 Kg, his price would be 5 Eiro,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then IF John bought at least 2 Kg, his price would be 10 Eiro,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&amp;nbsp;IF John bought at least 1 Kg, his price would be 20 Eiro,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;else ... (can make Null() value right now, but in fact have to be 20 Eiro)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;According to this logic, the result have to be like in Table_3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Client&amp;nbsp; &amp;nbsp; Correct Price&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;John&amp;nbsp; &amp;nbsp; &amp;nbsp;20 Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sara&amp;nbsp; &amp;nbsp; &amp;nbsp;10 Eiro&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to understan, how to calculate Table 3&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-intervals/m-p/1531444#M748193</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2024-11-16T04:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Please help with intervals</title>
      <link>https://community.qlik.com/t5/QlikView/Please-help-with-intervals/m-p/1531528#M748194</link>
      <description>&lt;P&gt;You need multiple steps for this task. At first will be the creating of an interval in two separate fields. Then you could use an intervalmatch to populate the intervals to a discrete value and then you could consider if you keep it as an own table or if you join/map these value to the fact-table (most often I match it to the facts because the link-table from the intervalmatch could become very large and decrease the performance). For the howto take a look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Creating-a-Date-Interval-from-a-Single-Date/ba-p/1467840" target="_blank"&gt;Creating-a-Date-Interval-from-a-Single-Date&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/IntervalMatch/ba-p/1464547" target="_blank"&gt;IntervalMatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;That the examples are with dates doesn't matter because a date is also just a (formatted) number.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 12:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Please-help-with-intervals/m-p/1531528#M748194</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-17T12:32:15Z</dc:date>
    </item>
  </channel>
</rss>

