<?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 Avoiding Synthetic Keys - Several tables with several fields in common in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250212#M1208564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sources are simple excel sheets...&lt;/P&gt;&lt;P&gt;How can I build that link table? I am not sure if I understand what do you mean...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Apr 2010 14:07:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-06T14:07:05Z</dc:date>
    <item>
      <title>Avoiding Synthetic Keys - Several tables with several fields in common</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250210#M1208562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a problem with Synthetic tables, due to the fact that I have several tables with several field in common.&lt;/P&gt;&lt;P&gt;The tables and the fields are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TankerRatesDirtySpot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Week - year] as RatesDate,&lt;/P&gt;&lt;P&gt;Port,&lt;/P&gt;&lt;P&gt;DWT,&lt;/P&gt;&lt;P&gt;[DIRTY (Spot WS)] as WS,&lt;/P&gt;&lt;P&gt;Day([Week - year]) as Day,&lt;/P&gt;&lt;P&gt;Week([Week - year]) AS Week,&lt;/P&gt;&lt;P&gt;Month([Week - year]) as Month,&lt;/P&gt;&lt;P&gt;Year([Week - year]) as Year,&lt;/P&gt;&lt;P&gt;Date(monthstart([Week - year]), 'MMM-YYYY') AS MonthYear&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;TankerRatesCleanSpot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Week - year] as RatesDate,&lt;/P&gt;&lt;P&gt;Port,&lt;/P&gt;&lt;P&gt;DWT,&lt;/P&gt;&lt;P&gt;[CLEAN (Spot WS)] as WS,&lt;/P&gt;&lt;P&gt;Day([Week - year]) as Day,&lt;/P&gt;&lt;P&gt;Week([Week - year]) AS Week,&lt;/P&gt;&lt;P&gt;Month([Week - year]) as Month,&lt;/P&gt;&lt;P&gt;Year([Week - year]) as Year,&lt;/P&gt;&lt;P&gt;Date(monthstart([Week - year]), 'MMM-YYYY') AS MonthYear&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;TCRates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Week - year] as RatesDate,&lt;/P&gt;&lt;P&gt;Type,&lt;/P&gt;&lt;P&gt;DWT,&lt;/P&gt;&lt;P&gt;[TC Rates] as TCRates,&lt;/P&gt;&lt;P&gt;Day([Week - year]) as Day,&lt;/P&gt;&lt;P&gt;Week([Week - year]) AS Week,&lt;/P&gt;&lt;P&gt;Month([Week - year]) as Month,&lt;/P&gt;&lt;P&gt;Year([Week - year]) as Year&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;NewBuildingPrices:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Week - year],&lt;/P&gt;&lt;P&gt;Type,&lt;/P&gt;&lt;P&gt;DWT,&lt;/P&gt;&lt;P&gt;Prices,&lt;/P&gt;&lt;P&gt;Date(monthstart([Week - year]), 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P&gt;Day([Week - year]) as Day,&lt;/P&gt;&lt;P&gt;Week([Week - year]) AS Week,&lt;/P&gt;&lt;P&gt;Month([Week - year]) as Month,&lt;/P&gt;&lt;P&gt;Year([Week - year]) as Year&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;TankOrderbook:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [BUILT YEAR] as BuiltYear,&lt;/P&gt;&lt;P&gt;[BUILT MONTH],&lt;/P&gt;&lt;P&gt;[YARD COUNTRY] as YardCountry,&lt;/P&gt;&lt;P&gt;DWT,&lt;/P&gt;&lt;P&gt;TYPE as Type,&lt;/P&gt;&lt;P&gt;[STATUS GROUP] as StatusGroup,&lt;/P&gt;&lt;P&gt;[SHIP TYPE] as ShipType,&lt;/P&gt;&lt;P&gt;[SHIP GROUP] as ShipGroup,&lt;/P&gt;&lt;P&gt;OWNER as Owner,&lt;/P&gt;&lt;P&gt;[ORDERBOOK ENTRY DATE] as OrderbookEntryDate,&lt;/P&gt;&lt;P&gt;Day([ORDERBOOK ENTRY DATE]) as Day,&lt;/P&gt;&lt;P&gt;Week([ORDERBOOK ENTRY DATE]) AS Week,&lt;/P&gt;&lt;P&gt;Month([ORDERBOOK ENTRY DATE]) as Month,&lt;/P&gt;&lt;P&gt;Year([ORDERBOOK ENTRY DATE]) as Year,&lt;/P&gt;&lt;P&gt;Year([ORDERBOOK ENTRY DATE]) as OrderbookEntryYear,&lt;/P&gt;&lt;P&gt;Date(monthstart([ORDERBOOK ENTRY DATE]), 'MMM-YYYY') AS OrderEntryMonthYear,&lt;/P&gt;&lt;P&gt;[BUILT YEAR] - Year([ORDERBOOK ENTRY DATE])as Durations&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;AfraShipments:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD LLPNR,&lt;/P&gt;&lt;P&gt;[SHIP NAME]as ShipName,&lt;/P&gt;&lt;P&gt;BUILT as Built,&lt;/P&gt;&lt;P&gt;DWT,&lt;/P&gt;&lt;P&gt;[DWT Type] as Type,&lt;/P&gt;&lt;P&gt;[SHIP TYPE] as ShipSegment,&lt;/P&gt;&lt;P&gt;[FROM PLACE DATE]as FromPlaceDate,&lt;/P&gt;&lt;P&gt;[TO PLACE DATE]as ToPlaceDate,&lt;/P&gt;&lt;P&gt;if([TO PLACE DATE]-[FROM PLACE DATE] &amp;gt;= 0,[TO PLACE DATE]-[FROM PLACE DATE]) as ShipmentDuration,&lt;/P&gt;&lt;P&gt;Day([FROM PLACE DATE]) as Day,&lt;/P&gt;&lt;P&gt;Week([FROM PLACE DATE]) AS Week,&lt;/P&gt;&lt;P&gt;Month([FROM PLACE DATE]) as Month,&lt;/P&gt;&lt;P&gt;Year([FROM PLACE DATE])as Year,&lt;/P&gt;&lt;P&gt;Date(monthstart([FROM PLACE DATE]), 'MMM-YYYY') AS FromMonthYear,&lt;/P&gt;&lt;P&gt;Date(monthstart([TO PLACE DATE]), 'MMM-YYYY') AS ToMonthYear,&lt;/P&gt;&lt;P&gt;if([TO PLACE DATE]-[FROM PLACE DATE] &amp;lt; 0,[TO PLACE DATE]-[FROM PLACE DATE]) as ShipmentDurationError,&lt;/P&gt;&lt;P&gt;if(isNull([FROM PLACE DATE]),'FromPlaceDateIsBlank') as BlankFromPlaceDate,&lt;/P&gt;&lt;P&gt;if(isNull([TO PLACE DATE]),'ToPlaceDateIsBlank') as BlankToPlaceDate,&lt;/P&gt;&lt;P&gt;if(isNull([TO PLACE DATE]) and isNull([FROM PLACE DATE]), 'BothDatesAreNull') as BlankToAndFromDates,&lt;/P&gt;&lt;P&gt;if([TO PLACE DATE] &amp;lt; [FROM PLACE DATE], 'ToDatePriorFromDate') as ToPlaceDateError&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm trying to do is, for example, when I select a the Year 2005 this selection will affect all the tables in my analyse, since all of them have date fields. Or, for example, when I select a ship type, that one that was selected will be selected in all tables that have the Type field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is a basic question, but i'm really struggling with this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope anyone can help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 13:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250210#M1208562</guid>
      <dc:creator />
      <dc:date>2010-04-06T13:40:12Z</dc:date>
    </item>
    <item>
      <title>Avoiding Synthetic Keys - Several tables with several fields in common</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250211#M1208563</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 think with this many tables I would probably implement a link table to sit in the middle of a star schema, but it's difficult for me to go any further with any advice unless I know the source of these tables, is this SQL and if so can you provide the SQL Statements that go with each table.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 14:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250211#M1208563</guid>
      <dc:creator />
      <dc:date>2010-04-06T14:02:00Z</dc:date>
    </item>
    <item>
      <title>Avoiding Synthetic Keys - Several tables with several fields in common</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250212#M1208564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sources are simple excel sheets...&lt;/P&gt;&lt;P&gt;How can I build that link table? I am not sure if I understand what do you mean...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 14:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250212#M1208564</guid>
      <dc:creator />
      <dc:date>2010-04-06T14:07:05Z</dc:date>
    </item>
    <item>
      <title>Avoiding Synthetic Keys - Several tables with several fields in common</title>
      <link>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250213#M1208565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow the below steps to avoid synthetic keys:&lt;/P&gt;&lt;P&gt;1. Concatenate the columns you want to use to link two tables, and create a new column. Ex.: COLUMNA &amp;amp; '_' &amp;amp; COLUMNB&lt;/P&gt;&lt;P&gt;2. Rename the column in one of the tables to a different name.&lt;/P&gt;&lt;P&gt;3. Best step is to start with columns used by QV in creating the Synthetic Keys.&lt;/P&gt;&lt;P&gt;Upendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 14:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Avoiding-Synthetic-Keys-Several-tables-with-several-fields-in/m-p/250213#M1208565</guid>
      <dc:creator>vupen</dc:creator>
      <dc:date>2010-04-06T14:45:39Z</dc:date>
    </item>
  </channel>
</rss>

