<?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 set analysis within a dimnesion interval in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800445#M282526</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'm struggling with an interval problem in a set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart (table) where i present customer, start date, end date, transaction amount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the transaction amout needs to be calculated so that the date for the transaction amount is within the start date and end date interval. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start date and end date coming from one table and transactions coming from another table which i have joined in the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, i don't get it to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my chart i se a list of customers and one customer can have several start and end dates and when i try the set analysis it calculates transaction amout between teh lowest of these start dates and the highest of the end dates, not between the two on that one row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the set analysis i've been using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;transaction_date = {"&amp;gt;=$(=min(start_date))&amp;lt;=$(=max(end_date))"}&amp;gt;} transaction_amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've also tries interval match with no luck. but any suggestion will do at this moment! &lt;/P&gt;&lt;P&gt;thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Nov 2014 11:43:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-22T11:43:44Z</dc:date>
    <item>
      <title>set analysis within a dimnesion interval in chart</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800445#M282526</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'm struggling with an interval problem in a set analysis. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a chart (table) where i present customer, start date, end date, transaction amount. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the transaction amout needs to be calculated so that the date for the transaction amount is within the start date and end date interval. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start date and end date coming from one table and transactions coming from another table which i have joined in the script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, i don't get it to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my chart i se a list of customers and one customer can have several start and end dates and when i try the set analysis it calculates transaction amout between teh lowest of these start dates and the highest of the end dates, not between the two on that one row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the set analysis i've been using:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;transaction_date = {"&amp;gt;=$(=min(start_date))&amp;lt;=$(=max(end_date))"}&amp;gt;} transaction_amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've also tries interval match with no luck. but any suggestion will do at this moment! &lt;/P&gt;&lt;P&gt;thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2014 11:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800445#M282526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-22T11:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis within a dimnesion interval in chart</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800446#M282527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you said&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;in my chart i se a list of customers and one customer can have several start and end dates and when i try the set analysis it calculates transaction amout between teh lowest of these start dates and the highest of the end dates, not between the two on that one row.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;yes, set analysis doesn't depend on dimension dates on the row but on min and max dates of a set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;maybe with a sum if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;example &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum(if(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;transaction_date&lt;/SPAN&gt;&amp;gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;start_date&lt;/SPAN&gt; and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;transaction_date&lt;/SPAN&gt;&amp;lt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;end_date&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;transaction_amount&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if possible, post a small example of your .qvw or some test data &lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2014 13:54:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800446#M282527</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-11-22T13:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis within a dimnesion interval in chart</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800447#M282528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add clarity and to reinforce the previous answer - the Set Analysis condition is calculated once per chart, before the chart is being calculated and rendered. It cannot be sensitive to the dimensions within the same chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One solution is to use sum(if()), however if this is too heavy (in case your dataset is large), you need to use data modeling and associate the range of the start-end dates with the transaction date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We could possibly look at your specific example if you posted one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Nov 2014 15:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800447#M282528</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2014-11-22T15:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis within a dimnesion interval in chart</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800448#M282529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if one customer can have multiple start and end dates, then maybe the extended intervalmatch (with an additional dimension) might help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Nov 2014 00:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-within-a-dimnesion-interval-in-chart/m-p/800448#M282529</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-23T00:43:46Z</dc:date>
    </item>
  </channel>
</rss>

