<?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: Data coming from two data sources in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193872#M875333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the data for all the months, just the current month data should be from Data source A while for previous months the data should be from Data source B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 06:43:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-10-26T06:43:48Z</dc:date>
    <item>
      <title>Data coming from two data sources</title>
      <link>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193869#M875330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data are coming from two sources. I want to create a data model in such a way that in checks for current month and for current month data is coming from data source A and if month is not the current month data is coming from data source B.&lt;/P&gt;&lt;P&gt;How can i achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Girish Inani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193869#M875330</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Data coming from two data sources</title>
      <link>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193870#M875331</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;Yes, you can achieve this! try something like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vDateCheck&amp;nbsp; =num(Monthname(Today()))&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load Max(Date) as sDate&lt;/P&gt;&lt;P&gt;from SourceA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vSourceDateCheck = peek('sDate',0,'Temp')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if vDateCheck = vSourceDateCheck then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * from sourceA;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;load * from sourceB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 06:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193870#M875331</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2016-10-26T06:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data coming from two data sources</title>
      <link>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193871#M875332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Girish Inani wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Data are coming from two sources. I want to create a data model in such a way that in checks for current month and for current month data is coming from data source A and if month is not the current month data is coming from data source B.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;How can i achieve this ?&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Try Something like this, If possible please try to share few data how fields data looking?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If Month = Max(Month) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SourceA:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *, Month From SourceA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ElseIf&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SourceB:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *, Month From SourceB;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 06:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193871#M875332</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-26T06:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data coming from two data sources</title>
      <link>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193872#M875333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the data for all the months, just the current month data should be from Data source A while for previous months the data should be from Data source B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 06:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193872#M875333</guid>
      <dc:creator />
      <dc:date>2016-10-26T06:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data coming from two data sources</title>
      <link>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193873#M875334</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 should build two variables in script that holds previous month and current month and use them in the where statment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 06:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193873#M875334</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2016-10-26T06:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data coming from two data sources</title>
      <link>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193874#M875335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don;t think so does it work for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about by using Qualify &amp;amp; UnQualify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Qualify *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SourceA:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Load *, Month From SourceA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;UnQualify Month;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;Qualify *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;SourceB:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Load *, Month From SourceB;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;UnQualify Month;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Then Create Straight Table by using Dim&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;And Expression seems this&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;just the current month data should be from Data source A while for previous months the data should be from Data source B.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sum({&amp;lt;SourceA.Month = {'$(=Max(SourceA.Month))'}, SourceB.Month = {'&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(=AddMonths(Max(SourceB.Month),-1))'&lt;/STRONG&gt;}&amp;gt;} Sales)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 07:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-coming-from-two-data-sources/m-p/1193874#M875335</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-26T07:22:05Z</dc:date>
    </item>
  </channel>
</rss>

