<?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: Date range in set analysis using date from a field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1639219#M456291</link>
    <description>&lt;P&gt;Best I have in addition to what Vegar posted is a Design Blog post that may be of some use:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 20:59:35 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-10-23T20:59:35Z</dc:date>
    <item>
      <title>Date range in set analysis using date from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637405#M456287</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;*Note: I am working in Quick Books Advanced Reporting which uses Qlikview software to build the reports. I've been able to solve most of my issues using info. I have found in the Qlik community but I'm sure there are distinctions associated with QBAR.&lt;/P&gt;&lt;P&gt;I am using set analysis to calculate the number of items invoiced after a particular start date. The start date comes from a field called&amp;nbsp; Customer.Job Start Date. I would like to make my set analysis only calculate the qty. invoiced after the Customer.Job Start Date. I can do this using an if statement but this seems to then calculate the expression as individual transactions instead of aggregating the data. (See pictures below).&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With set analysis of invoices the number is correct for the total qty. but I need to limit it to sales (qty. invoiced) after the job start date." style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21929i003640D69F296023/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture9.PNG" alt="With set analysis of invoices the number is correct for the total qty. but I need to limit it to sales (qty. invoiced) after the job start date." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With set analysis of invoices the number is correct for the total qty. but I need to limit it to sales (qty. invoiced) after the job start date.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="This set analysis gives me the correct qty. invoiced in total." style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21930i609A3E8AC2231EBD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture10.PNG" alt="This set analysis gives me the correct qty. invoiced in total." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;This set analysis gives me the correct qty. invoiced in total.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With the If statement which does work but only if I add a transaction type column and a transaction date column and the qty. is not aggregated." style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21931i04DDA7EF5713A529/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture11.PNG" alt="With the If statement which does work but only if I add a transaction type column and a transaction date column and the qty. is not aggregated." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With the If statement which does work but only if I add a transaction type column and a transaction date column and the qty. is not aggregated.&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="With If statement and no type and date columns" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21932i99A1927A7F9ECE50/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture12.PNG" alt="With If statement and no type and date columns" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;With If statement and no type and date columns&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The if statement appears to split the expression into individual transactions." style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/21933i90C700DD6826CCF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture13.PNG" alt="The if statement appears to split the expression into individual transactions." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The if statement appears to split the expression into individual transactions.&lt;/span&gt;&lt;/span&gt;How do I get the if statement into my set analysis? I can't seem to make it look at transaction dates &amp;gt; than the customer job start date.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637405#M456287</guid>
      <dc:creator>Dpage</dc:creator>
      <dc:date>2024-11-16T19:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis using date from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637408#M456288</link>
      <description>&lt;P&gt;What I'm seeing in most posts regarding how to use greater than in set analysis is something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Transactions.Txn Type]={'Invoice'}, [Transactions.Txn Date]={"&amp;gt;=[Customer.Job Start Date]"}&amp;gt;}[Transactions.Quantity])&lt;/P&gt;&lt;P&gt;I'm not sure if it's the field that is the problem. Most examples use either specific dates or some form of Date function. I just want it to look at the date value in Customer.Job Start Date and calculate quantities invoiced after that date.&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 23:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637408#M456288</guid>
      <dc:creator>Dpage</dc:creator>
      <dc:date>2019-10-18T23:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis using date from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637409#M456289</link>
      <description>&lt;P&gt;This slight change is giving me a result at least but now appears to be looking at all invoices again rather than after the start date.&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;[Transactions.Txn Type]={'Invoice'}, [Transactions.Txn Date]={"&amp;gt;=$([Customer.Job Start Date])"}&amp;gt;}[Transactions.Quantity])&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 23:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637409#M456289</guid>
      <dc:creator>Dpage</dc:creator>
      <dc:date>2019-10-18T23:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis using date from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637424#M456290</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I little different approach might work. See below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({&amp;lt;[Transactions.Txn Type]={'Invoice'}, TransactionsID = {"=[Transactions.Txn Date]&amp;gt;=[Customer.Job Start Date]"}&amp;gt;}[Transactions.Quantity])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If not, then post a picture (or describe) of your data model showing all the fields mentioned by you above.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 06:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1637424#M456290</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-10-19T06:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis using date from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1639219#M456291</link>
      <description>&lt;P&gt;Best I have in addition to what Vegar posted is a Design Blog post that may be of some use:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Dates-in-Set-Analysis/ba-p/1472511&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 20:59:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1639219#M456291</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-23T20:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Date range in set analysis using date from a field</title>
      <link>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1646696#M456292</link>
      <description>&lt;P&gt;Thank you for the response. I apologize as I have been out of the office for the last few weeks.&lt;/P&gt;&lt;P&gt;Your solution worked though I had to use Transactions.Txn ID. I figured it out once I thought about it. Thank you for your help.&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 21:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-range-in-set-analysis-using-date-from-a-field/m-p/1646696#M456292</guid>
      <dc:creator>Dpage</dc:creator>
      <dc:date>2019-11-13T21:34:19Z</dc:date>
    </item>
  </channel>
</rss>

