<?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 Link Time Periods Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/292997#M108740</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know working with Time calendars is a pain in Qlikview and I am stuck with an similar issue here. I have a fact, Dimension and Time period Tables. The Time Period tables is standard across the organization and we have already used it for another application. Now in this application, we have a TIME_PERIOD_ID field in the Sales Table and TIME_PERIOD_ID in the TIME_PERIODS_TABLE. I need some suggestions as to how to link these, I think it creates a Link table which is fine and I think I am following the right process of linking them, but doesnt seem to work. Has anyone come across similar issue in the past? Using V9 SR7.&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>Thu, 12 May 2011 10:35:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-05-12T10:35:21Z</dc:date>
    <item>
      <title>Link Time Periods Table</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/292997#M108740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know working with Time calendars is a pain in Qlikview and I am stuck with an similar issue here. I have a fact, Dimension and Time period Tables. The Time Period tables is standard across the organization and we have already used it for another application. Now in this application, we have a TIME_PERIOD_ID field in the Sales Table and TIME_PERIOD_ID in the TIME_PERIODS_TABLE. I need some suggestions as to how to link these, I think it creates a Link table which is fine and I think I am following the right process of linking them, but doesnt seem to work. Has anyone come across similar issue in the past? Using V9 SR7.&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>Thu, 12 May 2011 10:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/292997#M108740</guid>
      <dc:creator />
      <dc:date>2011-05-12T10:35:21Z</dc:date>
    </item>
    <item>
      <title>Link Time Periods Table</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/292998#M108741</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 you have a TIME_PERIOD_ID in your Sales table and a TIME_PERIOD_ID in your calendar table then everything should work just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say "doesn't seem to work", what exactly doesn't seem to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would normally put a field from the Sales table, the TIME_PERIOD_ID field, and a field from the calendar table into a Table box - this will quickly reveal why there isn't a connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 11:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/292998#M108741</guid>
      <dc:creator>stephencredmond</dc:creator>
      <dc:date>2011-05-12T11:56:01Z</dc:date>
    </item>
    <item>
      <title>Link Time Periods Table</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/292999#M108742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QlikView is associative, which means it always will link fields with the same name as key fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please attach a sample QVW file to make evaluation of your issue easier. In case your app contains sensitive data, please scramble the fields to make content unreadable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Settings &amp;gt; Document Settings &amp;gt; Scrambling&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 12:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/292999#M108742</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-12T12:52:12Z</dc:date>
    </item>
    <item>
      <title>Link Time Periods Table</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/293000#M108743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hello I will explain the problem I have in a bit detail. I have 2 Facts table where I have a field TIME_PERIOD_ID and there are some values in that. I have another master calendar where there is a TIME_PERIOD_ID on the DB which is blank. Check below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT1:&lt;BR /&gt;LOAD CUSTOMER_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROUND(TIME_PERIOD_ID) as TIME_PERIOD_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INDIRECT_SALES_VOL, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INDIRECT_SALES_REV, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIUK_SALES_REV, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA_SOURCE, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_UPDATED_DATE&lt;BR /&gt;FROM&lt;BR /&gt;D:\QVApps\Sales\QVD\W_IRSDWH_WKLY_INDIRECT_SALES_F.QVD&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FACT2:&lt;BR /&gt;CONCATENATE (W_IRSDWH_WKLY_INDIRECT_SALES_F)&lt;BR /&gt; LOAD DISTINCT CUSTOMER_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRODUCT_ID , &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ROUND(TIME_PERIOD_ID) as TIME_PERIOD_ID, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INDIRECT_SALES_VOL as PER_INDIRECT_SALES_VOL, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INDIRECT_SALES_REV as PER_INDIRECT_SALES_REV, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIUK_SALES_REV as PER_PIUK_SALES_REV, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATA_SOURCE, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LAST_UPDATED_DATE&lt;BR /&gt;FROM&lt;BR /&gt;D:\QVApps\Sales\QVD\W_IRSDWH_PER_INDIRECT_SALES_F.QVD&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALENDAR:&lt;/P&gt;&lt;P&gt;LOAD TIME_PERIOD_ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_PERIOD_TYPE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_PERIOD_YEAR, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_PERIOD_PERIOD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_PERIOD_WEEK_NO, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_PERIOD_WEEK_DAY, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_PERIOD_START_DATE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_RPT_PERIOD, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME_RPT_WEEK,&lt;/P&gt;&lt;P&gt;FROM XYZ.QVD(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am joining them, then I can see that there are repeated values in the TIME_PERIOD_ID listbox and top time period values seem to be working for all the tables but the Time period itself and if I select the bottom time values, they work for only Time period Tables but not for other facts and dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 15:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/293000#M108743</guid>
      <dc:creator />
      <dc:date>2011-05-12T15:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Link Time Periods Table</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/293001#M108744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be a problem of the real value vs. the displayed value.&amp;nbsp; For instance, let's say your data is really this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;TIME_PERIOD_ID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;2.7&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3.8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you round(), you change the actual values to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in a list box, since you only see distinct values, you'd see this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But let's say you loaded this same data in another table and didn't round() it, and instead just changed the numeric format.&amp;nbsp; Although it would still display as 1, 3 and 4 in charts, Qlikview still knows the underlying numeric value, and would give you separate rows in a list box, since they're really separate values.&amp;nbsp; In addition, they are distinct from the earlier values, since those had been rounded off.&amp;nbsp; So you'd see this in a list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of those values would apply to some tables, and others to others, just like you're seeing.&amp;nbsp; Now I can't say for certain that that's what's causing your problem, but it's certainly ONE way to cause that problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 23:06:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/293001#M108744</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-05-12T23:06:10Z</dc:date>
    </item>
    <item>
      <title>Link Time Periods Table</title>
      <link>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/293002#M108745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your key to solving this should be according to John's comment. Since you only marked it as helpful, is it still a problem? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to previous entry I would suggest that you do not use Round() to convert time stamps into Dates. A date is the integer part of of a decimal value, hence you should eliminate the decimal with Floor() to not alter the Integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Round(3.8) = 4&lt;/P&gt;&lt;P&gt;Floor(3.8) = 3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 11:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Link-Time-Periods-Table/m-p/293002#M108745</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2011-05-13T11:27:14Z</dc:date>
    </item>
  </channel>
</rss>

