<?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: How to connect different Dates in Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748340#M57534</link>
    <description>&lt;P&gt;Thanks for answering and bringing autonumber - ids into my mind.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 07:18:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-09-30T07:18:51Z</dc:date>
    <item>
      <title>How to connect different Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748118#M57513</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following fields and tables:&lt;/P&gt;&lt;P&gt;Orders:&lt;/P&gt;&lt;P&gt;OrderNr | OrderDate | Article | OrderAmount&lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;SalesDate | Article | SaleAmount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Set Analysis i want to have following table (filter on one OrderNr):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Article | OrderAmount | SalesAmount(Set Analysis: SalesDate = between OrderDate and today)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks alot!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748118#M57513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T18:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect different Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748130#M57515</link>
      <description>&lt;P&gt;hi @Anonymous&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess that in the Sales table you have a unique identifier for each sale,&amp;nbsp;otherwise I created one as shown in the script below :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Orders:

load * inline [
OrderNr,OrderDate,Article,OrderAmount
1,01/01/2020,a,100
2,20/12/2020,b,200
];

Sales:

load *,autonumber(SalesDate&amp;amp;Article) as IdSales inline [
SalesDate,Article,SaleAmoun
01/02/2020,a,50
01/04/2020,a,60
01/10/2021,a,40
22/12/2020,b,60
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then u can create&amp;nbsp; your Set script as :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;=sum({&amp;lt;IdSales={"= num(today()-SalesDate)&amp;gt;=0 and num(OrderDate-SalesDate)&amp;lt;=0 "}&amp;gt;}SaleAmoun)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 900px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41400iD8C2EDAC18C03778/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748130#M57515</guid>
      <dc:creator>Taoufiq_Zarra</dc:creator>
      <dc:date>2020-09-29T14:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect different Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748178#M57519</link>
      <description>&lt;P&gt;I would concatenate Orders and Sales into 1 table called Fact_Main, and use a common date column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pro Tip:&amp;nbsp; &lt;STRONG&gt;always&lt;/STRONG&gt; (100% without exception), concatenate transaction (fact) tables into a single concatenated fact.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then build dimensions around the concatenated fact.&amp;nbsp; I have probably built at least 100 QV data models this way.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use a common name for the date like transactionDate&amp;nbsp; Then, transaction date can be filtered and acrosss the 2 types of transactions.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:58:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748178#M57519</guid>
      <dc:creator>dadumas</dc:creator>
      <dc:date>2020-09-29T15:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect different Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748339#M57533</link>
      <description>&lt;P&gt;Thanks alot for answering.&lt;/P&gt;&lt;P&gt;My description didnt contain any information if the tables are concatenated or not. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Im also building all my apps with the star schema data model, but in this case, i did not get the analysis-table i wanted.&lt;/P&gt;&lt;P&gt;Again, thanks for answering!&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748339#M57533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-30T07:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect different Dates in Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748340#M57534</link>
      <description>&lt;P&gt;Thanks for answering and bringing autonumber - ids into my mind.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 07:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-connect-different-Dates-in-Set-Analysis/m-p/1748340#M57534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-30T07:18:51Z</dc:date>
    </item>
  </channel>
</rss>

