<?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 Data Modelling Problem/Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174662#M43400</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plandate is on monthly basis, invoice date is on daily basis&lt;/P&gt;&lt;P&gt;Plantable looks like this&lt;/P&gt;&lt;P&gt;KEY MA MG Date Plan_Sales&lt;BR /&gt;=========================================&lt;BR /&gt;10 XY X1 Jan 09 1000&lt;BR /&gt;10 XY X2 Jan 09 1220&lt;BR /&gt;10 XY X3 Jan 09 1330&lt;BR /&gt;10 XY X4 Jan 09 1400&lt;BR /&gt;...... to Dec 09&lt;BR /&gt;20 XY X1 Jan 09 1222&lt;BR /&gt;..... to Dec 09&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Sep 2009 16:44:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-09-03T16:44:19Z</dc:date>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174656#M43394</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;BR /&gt;I'm dealing with a data modelling issue. Currently Invoices are analysed by MA and MG.&lt;/P&gt;&lt;P&gt;Data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-417_sourceID:417" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pivot table should look like this:&lt;BR /&gt;(Currently everythings working fine without planning figures). Selecting month and year should be possible.&lt;/P&gt;&lt;P&gt;MA MG Sales Figures Plan Figures&lt;BR /&gt;==========================================&lt;BR /&gt;XY X1 1000 1500&lt;BR /&gt; X2 2000 2110&lt;BR /&gt; X3 5000 4110&lt;BR /&gt; X4 6000 3110&lt;BR /&gt;XZ X1 ......&lt;BR /&gt;&lt;BR /&gt;now the table plan figures is added. Can someone tell what would be the best way.&lt;/P&gt;&lt;P&gt;My ideas:&lt;/P&gt;&lt;P&gt;1. Concatenating PlanFigues and Invoices (to get "one date" field to select)&lt;BR /&gt;2. mapping Article_Group into Article.&lt;/P&gt;&lt;P&gt;Thanks for your ideas and help.&lt;/P&gt;&lt;P&gt;Aloah&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 14:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174656#M43394</guid>
      <dc:creator />
      <dc:date>2009-09-03T14:24:12Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174657#M43395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Arent you interesting only in a Date in Invoices? What is the date in PlanFigures for?&lt;/P&gt;&lt;P&gt;If you really need to have one date for Invoices and PlanFigures then you can create calendar:&lt;/P&gt;&lt;P&gt;Calendar:&lt;BR /&gt;load&lt;BR /&gt; Plan_Key,&lt;BR /&gt; Invoices.Date as CalendarDate&lt;BR /&gt;resident Invoices;&lt;BR /&gt;drop field Invoices.Date from Invoices;&lt;BR /&gt;concatenate (Calendar)&lt;BR /&gt;load&lt;BR /&gt; Plan_Key,&lt;BR /&gt; PlanFigures.Date as CalendarDate&lt;BR /&gt;resident PlanFigures;&lt;BR /&gt;drop field PlanFigures.Date from PlanFigures;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 15:11:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174657#M43395</guid>
      <dc:creator />
      <dc:date>2009-09-03T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174658#M43396</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;BR /&gt;I need the date field for selection months. e.g. I would like to compare the "current" figures for aug09 and the plan figures for aug 09.&lt;BR /&gt;this should be done in a pivottable with MA and MG as dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 15:33:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174658#M43396</guid>
      <dc:creator />
      <dc:date>2009-09-03T15:33:31Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174659#M43397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the relationship between PlanFigures and Invoices? Those tables are already linked via Plan_Key. If you currently cannot do your comparison then this association is incorrect. We should link you Plan with Sales in the way that you will be able to do comparisons. Please attach your qvw and we will solve your problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 16:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174659#M43397</guid>
      <dc:creator />
      <dc:date>2009-09-03T16:05:15Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174660#M43398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Invoices contain the "invoices head", invoices pos the different positions of the invoice.&lt;BR /&gt;Generally I would agree that plan has to be linked to invoice_pos, but there's no key.&lt;BR /&gt;Although if it would be linked to invoice_pos I still would get an circular reference error because of MG and MA in tables Plan, Department and Group), or did I get something wrong?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 16:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174660#M43398</guid>
      <dc:creator />
      <dc:date>2009-09-03T16:23:58Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174661#M43399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok so explain me one more thing. Is your plan on monthly/weekly/daily/yearly basis? So your invoice date is for example 05/05/2009, do you have a plan for that day for a given MG and MA, or is there a plan for 05/2009 only, or 2009 only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 16:31:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174661#M43399</guid>
      <dc:creator />
      <dc:date>2009-09-03T16:31:18Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174662#M43400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plandate is on monthly basis, invoice date is on daily basis&lt;/P&gt;&lt;P&gt;Plantable looks like this&lt;/P&gt;&lt;P&gt;KEY MA MG Date Plan_Sales&lt;BR /&gt;=========================================&lt;BR /&gt;10 XY X1 Jan 09 1000&lt;BR /&gt;10 XY X2 Jan 09 1220&lt;BR /&gt;10 XY X3 Jan 09 1330&lt;BR /&gt;10 XY X4 Jan 09 1400&lt;BR /&gt;...... to Dec 09&lt;BR /&gt;20 XY X1 Jan 09 1222&lt;BR /&gt;..... to Dec 09&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 16:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174662#M43400</guid>
      <dc:creator />
      <dc:date>2009-09-03T16:44:19Z</dc:date>
    </item>
    <item>
      <title>Data Modelling Problem/Question</title>
      <link>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174663#M43401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. I would link PlanFigures to Invoice_Pos which requires the following steps:&lt;BR /&gt;1. Move Date from Invoices to Invoice_Pos:&lt;BR /&gt;left join (Invoice_Pos)&lt;BR /&gt;load&lt;BR /&gt; InvoicePos_Key,&lt;BR /&gt; monthstart(Date) as InvoicePos_Date&lt;BR /&gt;resident Invoices;&lt;BR /&gt;2. Move MG to Invoice_Pos as InvoicePos_MG&lt;BR /&gt;3. Move MA to Invoice_Pos as InvoicePos_MA&lt;BR /&gt;4. Create new field in Invoices_Pos that will be a link to PlanFigures:&lt;BR /&gt;left join (Invoice_Pos)&lt;BR /&gt;load&lt;BR /&gt; InvoicePos_Key,&lt;BR /&gt; trim(InvoicePos_Date)&amp;amp;'-'&amp;amp;trim(InvoicePos_MG)&amp;amp;'-'&amp;amp;trim(InvoicePos_MA) as J_PlanFigures //after testing replace with autonumberhash...&lt;BR /&gt;resident Invoice_Pos;&lt;BR /&gt;5. create J_PlanFigures in PlanFigures table:&lt;BR /&gt;left join (PlanFigures)&lt;BR /&gt;load&lt;BR /&gt; Plan_Key,&lt;BR /&gt; trim(monthstart(Date))&amp;amp;'-'&amp;amp;trim(MG)&amp;amp;'-'&amp;amp;trim(MA) as J_PlanFigures //after testing replace with autonumberhash...&lt;BR /&gt;resident PlanFigures;&lt;/P&gt;&lt;P&gt;That should give you a proper link between sales information and target (plan).&lt;/P&gt;&lt;P&gt;If you have more issues with that I really suggest to post this document...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 17:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Data-Modelling-Problem-Question/m-p/174663#M43401</guid>
      <dc:creator />
      <dc:date>2009-09-03T17:06:12Z</dc:date>
    </item>
  </channel>
</rss>

