<?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: Pivot chart with unlinked tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409917#M488860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say " date island", you mean an unlinked table with months and years? This would be used instead of setting variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "use a combination of IF statement and set analysis to check that each component (Sales and Cost) are within the period you want" is what is troubling me!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me an example in that so I can test it in my pivot chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2012 19:10:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-05T19:10:38Z</dc:date>
    <item>
      <title>Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409911#M488854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;Hello to all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;I am relat&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;ively new to qlik and (unfortunately) I&amp;nbsp; have a project that I can’t sort out.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;The case is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;I have loaded two resident tables (SQL server):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;SALES having data from all invoices (DATE,YEAR, MONTH, ITEM, QTY)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;COSTPRICES that has a cost price for all items for all years and all months (YEAR,MONTH,ITEM,COSTPRICE)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;I have created 3 variables:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;sales start date&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;sales end date&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;Cost period&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;I need a pivot chart with the expressions below:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;SALES QTY (from sales start date &lt;SPAN style="text-decoration: underline;"&gt;to&lt;/SPAN&gt; sales end date)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;COST (qty * COSTPRICE) &lt;STRONG&gt;FOR THE SELECTED by the user cost period&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;(the dimensions will vary ex. items, months etc)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;I have not linked the 2 tables since that would give wrong results (either in sold quantity or cost).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;There is no problem in the pivot chart to get sum(QTY) for the selected range of dates. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;It is that, by some means, I have to get the ONE cost price for each invoice line (based on item, selected period and sales year)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;I believe that I should use some kind of function that fetches the right COST&amp;nbsp; PRICE for every item and year in the selected&lt;BR /&gt;month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;Since I am on a dead end, any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: &amp;amp;quot;Century Gothic&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt; mso-bidi-font-size: 11.0pt; mso-bidi-font-family: &amp;amp;quot;Times New Roman&amp;amp;quot;; mso-bidi-theme-font: minor-bidi; mso-ansi-language: EN-US;"&gt;PS: I hope I made the case as clear as possible to help you understand what I am looking for.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 15:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409911#M488854</guid>
      <dc:creator />
      <dc:date>2012-12-05T15:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409912#M488855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there's a way to determine the right cost price for an item in a year, then you can link the tables using that logic. And that's what you should do. From your description it looks like you could create a key in both tables from ITEM&amp;amp;MONTH&amp;amp;YEAR and link the tables on that key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 18:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409912#M488855</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-05T18:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409913#M488856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert is correct that you need some sort of relationship between the 2 tables to display data from both of them in the same chart. I would suggest concatenating rather than linking--i.e. try to create a true star schema. This is beneficial both in terms of performance and overall aesthetics (since both tables are fact tables). Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13547327589043303" jivemacro_uid="_13547327589043303"&gt;&lt;P&gt;Fact:&lt;BR /&gt;LOAD &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE as DateKey,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEM,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QTY,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as SalesRow&lt;BR /&gt;RESIDENT SALES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCANTENATE (Fact) LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; YEAR &amp;amp; '|' num(MONTH) as DateKey, //this assumes you have a 4-digit year and numeric/dual month&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ITEM,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COSTPRICE&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as CostRow&lt;BR /&gt;RESIDENT COSTPRICES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLES SALES,COSTPRICES;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Next, create a master calendar that will contain all your sales dates&lt;/P&gt;&lt;P&gt;min_max_dates:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(DateKey) as mindate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(DateKey) as maxdate&lt;BR /&gt;RESIDENT Fact&lt;BR /&gt;WHERE SalesRow=1&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vMinDate = peek('mindate');&lt;BR /&gt;LET vMaxDate = peek('maxdate');&lt;BR /&gt;LET vNoDays = '$(vMaxDate)' - '$(vMinDate)' + 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE min_max_dates;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateKey,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DateKey as Date,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(DateKey) as Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(DateKey) as Month,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(monthstart(DateKey),'MMM YYYY') as MonthYear,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; ceil(month(DateKey)/3) as Quarter&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date('$(vMinDate)' + recno() - 1) as DateKey&lt;BR /&gt;AUTOGENERATE $(vNoDays);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Adding "generic key" rows to master calendar to create matches on Cost data&lt;BR /&gt;CONCATENATE (Calendar) LOAD&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year &amp;amp; '|' &amp;amp; num(Month) as DateKey,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MonthYear,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Quarter&lt;BR /&gt;RESIDENT Calendar;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 18:38:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409913#M488856</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-05T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409914#M488857</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;If I link both tables on item&amp;amp;month&amp;amp;year then when I select a certain period, the calculation in the expression of &lt;SPAN lang="EN-US" style="font-size: 10pt;"&gt;COST (qty * COSTPRICE) &lt;/SPAN&gt;will be done with the respective costprice AND NOT the price that I want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more precise:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The normal situation (that you are talking about) is:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have sold 10 pieces of a product in May 2012.&lt;/P&gt;&lt;P&gt;The items sell price is 6$ so I earned 10*6$=60$&lt;/P&gt;&lt;P&gt;The cost price (in costprice table) for that period is 3$.&lt;/P&gt;&lt;P&gt;The cost of this sale is 10*3$=30$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My situation is a bit more complex:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have sold 10 pieces of a product in May 2012. &lt;/P&gt;&lt;P&gt;The items sell price is 6$ so I earned 10*6$=60$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The cost price THAT I WANT TO USE is from the December period and is 5$&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The cost of this sale is 10*5$=50$&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope now it is more clear.Thanks again for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 18:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409914#M488857</guid>
      <dc:creator />
      <dc:date>2012-12-05T18:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409915#M488858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad,&lt;/P&gt;&lt;P&gt;You are on the same track as Gysbert and I believe that it isn't what I need for my situation. Perhaps my answer to Gysbert can clarify my problem.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 18:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409915#M488858</guid>
      <dc:creator />
      <dc:date>2012-12-05T18:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409916#M488859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, well in that case I would still use my data model and just add 1 more table: a date island. The fields from this date island will be your chart dimensions and you will need to use a combination of IF statement and set analysis to check that each component (Sales and Cost) are within the period you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 18:56:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409916#M488859</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-05T18:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409917#M488860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you say " date island", you mean an unlinked table with months and years? This would be used instead of setting variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "use a combination of IF statement and set analysis to check that each component (Sales and Cost) are within the period you want" is what is troubling me!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me an example in that so I can test it in my pivot chart?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 19:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409917#M488860</guid>
      <dc:creator />
      <dc:date>2012-12-05T19:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409918#M488861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:06:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409918#M488861</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2012-12-06T14:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot chart with unlinked tables</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409919#M488862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vlad,&lt;/P&gt;&lt;P&gt;Thank you very much for your time and effort. The attached file is absolutely correct. I have to make all the adjustments to fit it in my data, but it is pointing me to the right path.&lt;/P&gt;&lt;P&gt;Thanks once more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 09:59:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-chart-with-unlinked-tables/m-p/409919#M488862</guid>
      <dc:creator />
      <dc:date>2012-12-11T09:59:52Z</dc:date>
    </item>
  </channel>
</rss>

