<?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: Need to link by Date fields in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1633386#M47153</link>
    <description>&lt;P&gt;This is typically a part of the process when creating a link table in case we need to troubleshoot the key fields, we know where they come from.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Oct 2019 00:02:33 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2019-10-10T00:02:33Z</dc:date>
    <item>
      <title>Need to link by Date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1631391#M47002</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Been trying to link two date fields that are at different levels of granularity&lt;/P&gt;&lt;P&gt;One is by Month and the other is Day I have created a ID to link the month between the month scrap allowance and the master calendar so the scarp month total can be worked out by how many working days in each month&lt;/P&gt;&lt;P&gt;what I would like to do is when a month is clicked I get the Daily totals for each month I just can not see how to use a link table so I can join the scrap days into the scrap month. Any help would be greatly &lt;FONT color="#000000"&gt;appreciated&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1631391#M47002</guid>
      <dc:creator>Eaun</dc:creator>
      <dc:date>2024-11-16T04:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need to link by Date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1632263#M47087</link>
      <description>&lt;P&gt;Here is your script with a link table to join based on MonthYear and CostCentre&lt;/P&gt;
&lt;P&gt;[SCRAP]:&lt;BR /&gt;LOAD&lt;BR /&gt;Date(MonthStart(ALLOWANCE_DATE),'MMM-YYYY')&amp;amp; '|' &amp;amp; COST_CENTER as YMCC_Key,&lt;BR /&gt;ALLOWANCE_DATE,&lt;BR /&gt;SCRAP_TOTAL,&lt;BR /&gt;COST_CENTER as SCRAP_COST_CENTER,&lt;BR /&gt;// %ID,&lt;BR /&gt;NUMBER_OF_DAYS&lt;BR /&gt;FROM [lib://test/SCRAP.qvd]&lt;BR /&gt;(qvd);&lt;/P&gt;
&lt;P&gt;[SCRAP_REPORT]:&lt;BR /&gt;LOAD&lt;BR /&gt;Date(MonthStart(CalDate),'MMM-YYYY')&amp;amp; '|' &amp;amp; COST_CENTER as YMCC_Key,&lt;BR /&gt;date(date#(CalDate),'YYYY\MM\DD') as CalDate,&lt;BR /&gt;// %SCRAPMONTH,&lt;BR /&gt;COST_CENTER as REPORT_COST_CENTER,&lt;BR /&gt;QTY_TO_SCRAP&lt;BR /&gt;FROM [lib://test/SCRAP_REPORT.xls]&lt;BR /&gt;(biff, embedded labels, table is Data$)&lt;BR /&gt;where CalDate &amp;gt;='01042019';&lt;/P&gt;
&lt;P&gt;YEAR_CALENDAR:&lt;/P&gt;
&lt;P&gt;// Load Distinct&lt;BR /&gt;// *,&lt;BR /&gt;// AutoNumber(%ALLOWANCEMONTH) AS %ID;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;DaysInMonth - WorkingDaysInMonth AS WeekendDaysInMonth;&lt;BR /&gt;Load&lt;BR /&gt;*,&lt;BR /&gt;NetworkDays(%ALLOWANCEMONTH, MonthEnd(%ALLOWANCEMONTH)) AS WorkingDaysInMonth;&lt;/P&gt;
&lt;P&gt;LOAD &lt;BR /&gt;REFERENCE_DATE,&lt;/P&gt;
&lt;P&gt;num(Day(MonthEnd(REFERENCE_DATE))) AS DaysInMonth,&lt;BR /&gt;Day(REFERENCE_DATE) as DAY,&lt;BR /&gt;Month(REFERENCE_DATE) as MONTH,&lt;BR /&gt;Year(REFERENCE_DATE) as YEAR,&lt;BR /&gt;Week(REFERENCE_DATE) as WEEK,&lt;BR /&gt;'Q' &amp;amp; Ceil(Month(REFERENCE_DATE)/3) as QUARTER,&lt;BR /&gt;Date(MonthStart(REFERENCE_DATE),'MMM-YYYY') as MONTH_YEAR,&lt;BR /&gt;InYearToDate(REFERENCE_DATE,'$(vToday)',0)*-1 as CYDFlag,&lt;BR /&gt;InYearToDate(REFERENCE_DATE,'$(vToday)',-1)*-1 as LYDFlag,&lt;BR /&gt;DATE(DATE#('01'&amp;amp;RIGHT(0&amp;amp;NUM(MONTH(REFERENCE_DATE)),2)&amp;amp;Year(REFERENCE_DATE)),'DDMMYYYY') as %ALLOWANCEMONTH;&lt;/P&gt;
&lt;P&gt;Load&lt;BR /&gt;Date(AllowanceMinDate + IterNo()) as REFERENCE_DATE&lt;BR /&gt;While AllowanceMinDate + IterNo() &amp;lt;= AllowanceMaxDate;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Load&lt;BR /&gt;num(min(FieldValue('ALLOWANCE_DATE',RecNo()))) as AllowanceMinDate,&lt;BR /&gt;num(Max(FieldValue('ALLOWANCE_DATE',RecNo()))) as AllowanceMaxDate&lt;BR /&gt;AutoGenerate FieldValueCount('ALLOWANCE_DATE');&lt;/P&gt;
&lt;P&gt;LinkTable:&lt;BR /&gt;Load Distinct &lt;BR /&gt;Date(MonthStart(ALLOWANCE_DATE),'MMM-YYYY')&amp;amp;'|'&amp;amp; SCRAP_COST_CENTER as YMCC_Key,&lt;BR /&gt;Date(MonthStart(ALLOWANCE_DATE),'MMM-YYYY') as MONTH_YEAR, &lt;BR /&gt;SCRAP_COST_CENTER as COST_CENTER,&lt;BR /&gt;'SCRAP' as FromTable&lt;BR /&gt;Resident SCRAP;&lt;BR /&gt;&lt;BR /&gt;Concatenate(LinkTable)&lt;BR /&gt;Load Distinct &lt;BR /&gt;Date(MonthStart(CalDate),'MMM-YYYY')&amp;amp;'|'&amp;amp; REPORT_COST_CENTER as YMCC_Key,&lt;BR /&gt;Date(MonthStart(CalDate),'MMM-YYYY') as MONTH_YEAR, &lt;BR /&gt;REPORT_COST_CENTER as COST_CENTER,&lt;BR /&gt;'REPORT' as FromTable&lt;BR /&gt;Resident SCRAP_REPORT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 00:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1632263#M47087</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-10-08T00:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to link by Date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1632869#M47119</link>
      <description>&lt;P&gt;Thank you that worked&lt;/P&gt;&lt;P&gt;I can see how the link works now the only thing I'm not sure of is :&lt;/P&gt;&lt;P&gt;'SCRAP' as FromTable and 'REPORT' as FromTable what are they used for ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2019 08:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1632869#M47119</guid>
      <dc:creator>Eaun</dc:creator>
      <dc:date>2019-10-09T08:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need to link by Date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1633386#M47153</link>
      <description>&lt;P&gt;This is typically a part of the process when creating a link table in case we need to troubleshoot the key fields, we know where they come from.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 00:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1633386#M47153</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2019-10-10T00:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need to link by Date fields</title>
      <link>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1633483#M47165</link>
      <description>&lt;P&gt;I see now it just creates a tag for each record&amp;nbsp; very useful&lt;/P&gt;&lt;P&gt;thank you for help&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2019 08:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-to-link-by-Date-fields/m-p/1633483#M47165</guid>
      <dc:creator>Eaun</dc:creator>
      <dc:date>2019-10-10T08:02:30Z</dc:date>
    </item>
  </channel>
</rss>

