<?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 Cannot use data from different sources in one formula in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453135#M484352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I meet the following issue: the main part of the source data of my Qlikview report is retrieved from the CRM database&lt;BR /&gt;stored in SQL 2K, while some others are given by Excel file, like sales milestones; and I can't use the data from both&lt;BR /&gt;sources together in one formula, for instance: the payment collection milestone is calculated as: (the cumulative amount&lt;BR /&gt;of 'SOLD' contracts till current week) X (a given percentage value); the 1st value can be calculated with the data got from&lt;BR /&gt;SQL database, and the 2nd one is listed in the Excel file, like:&lt;/P&gt;&lt;P&gt;Week 1 10%&lt;BR /&gt;Week 2 12.3%&lt;BR /&gt;Week 3 14%&lt;BR /&gt;Week 4 15.2%&lt;BR /&gt;...&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;Week 30 98.1%&lt;BR /&gt;Week 31 100%&lt;/P&gt;&lt;P&gt;These data can be loaded into Qlikview wiht no issue through separate script block, but when I tried to use them into&lt;BR /&gt;one formula, it always get a Zero.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is anybody who can tell me how resolve this? I have been stuck here for a long time, and the deadline is coming...&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Jun 2013 07:30:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-08T07:30:18Z</dc:date>
    <item>
      <title>Cannot use data from different sources in one formula</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453135#M484352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I meet the following issue: the main part of the source data of my Qlikview report is retrieved from the CRM database&lt;BR /&gt;stored in SQL 2K, while some others are given by Excel file, like sales milestones; and I can't use the data from both&lt;BR /&gt;sources together in one formula, for instance: the payment collection milestone is calculated as: (the cumulative amount&lt;BR /&gt;of 'SOLD' contracts till current week) X (a given percentage value); the 1st value can be calculated with the data got from&lt;BR /&gt;SQL database, and the 2nd one is listed in the Excel file, like:&lt;/P&gt;&lt;P&gt;Week 1 10%&lt;BR /&gt;Week 2 12.3%&lt;BR /&gt;Week 3 14%&lt;BR /&gt;Week 4 15.2%&lt;BR /&gt;...&lt;BR /&gt;...&lt;/P&gt;&lt;P&gt;Week 30 98.1%&lt;BR /&gt;Week 31 100%&lt;/P&gt;&lt;P&gt;These data can be loaded into Qlikview wiht no issue through separate script block, but when I tried to use them into&lt;BR /&gt;one formula, it always get a Zero.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is anybody who can tell me how resolve this? I have been stuck here for a long time, and the deadline is coming...&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jun 2013 07:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453135#M484352</guid>
      <dc:creator />
      <dc:date>2013-06-08T07:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use data from different sources in one formula</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453136#M484353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to post some more information about your data model, dimensions and expressions used in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are using a date / week dimension, that is linked to your SQL table with the SOLD contracts.&lt;/P&gt;&lt;P&gt;I also assume your second table is not linked to that dimension, so QV won't know which percentage to use for the calculation, thus it will return NULL (that might lead to a zero in further calculation).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jun 2013 09:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453136#M484353</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-08T09:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use data from different sources in one formula</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453137#M484354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="42314" class="jive-image" alt="QVStructure.jpg" src="https://community.qlik.com/legacyfs/online/42314_QVStructure.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you are right. Please refer to the above screen show of the table structure of my report -- the main data table (the bigger one in the right) which contain the data of SOLD amount does link with the data table retrieve from Excel (the smaller one in the left) through column 'WeeksOut'; however, in the formula of paymant dashboard, I have to use column 'wks' (the column in the smallest table shown in the bottom-left corner) as the dimension of the dashboard for other calculations in same dashboard are rely on it, and this is a inline table, and the values and set like following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt; 5&lt;/P&gt;&lt;P&gt; 10&lt;/P&gt;&lt;P&gt; 15&lt;/P&gt;&lt;P&gt; 20&lt;/P&gt;&lt;P&gt; 25&lt;/P&gt;&lt;P&gt; 30&lt;/P&gt;&lt;P&gt; 35&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there any suggestion that you can give me about how to solve this problem, by either &lt;/P&gt;&lt;P&gt;1. change the loading methods of the source data&lt;/P&gt;&lt;P&gt;2. or, change the settings, like dimension column, in the dashboard I am working on&lt;/P&gt;&lt;P&gt;3. or, change the formula I use for payment milestone calculation,shown as following&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if (wks&amp;gt;=WeeksOutfromToday,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sum(if(WeeksOut&amp;gt;=wks and ShowYear=ShowYear and Show=Show and Revenue&amp;gt;0 and (OrderlineStatus='SOLD' or OrderlineStatus='Return Cash'),Revenue,0)) * CollectionMileStone / 1000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;or any other way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 02:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453137#M484354</guid>
      <dc:creator />
      <dc:date>2013-06-09T02:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use data from different sources in one formula</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453138#M484355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's hard to give an advice without knowing your full setting and requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I see, I would check&lt;EM&gt; wks &amp;gt;= WeeksOutfromToday &lt;/EM&gt;,i.e. double check WeeksOutfromToday (I can't see where this is coming from).&lt;/P&gt;&lt;P&gt;Also your conditions &lt;EM&gt;ShowYear = ShowYear and Show=Show &lt;/EM&gt;don't seem meaníngful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would start with creating an expression as simple as possible, then adding more complexity one after another as needed (and &lt;SPAN style="text-decoration: underline;"&gt;only &lt;/SPAN&gt;if it's needed!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jun 2013 13:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453138#M484355</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-09T13:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use data from different sources in one formula</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453139#M484356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan for your kindly help! I will send you a more complete sample file later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 08:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453139#M484356</guid>
      <dc:creator />
      <dc:date>2013-06-11T08:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use data from different sources in one formula</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453140#M484357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan for your kindly help! I will send you a more complete sample file later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 08:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453140#M484357</guid>
      <dc:creator />
      <dc:date>2013-06-11T08:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use data from different sources in one formula</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453141#M484358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Stefan for your kindly help! I will send you a more complete sample file later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 08:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-use-data-from-different-sources-in-one-formula/m-p/453141#M484358</guid>
      <dc:creator />
      <dc:date>2013-06-11T08:17:23Z</dc:date>
    </item>
  </channel>
</rss>

