<?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 Concatenate tables with dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1738929#M590723</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a situation where i need to concatenate Sales table with objectives table.&lt;/P&gt;&lt;P&gt;both tables has a lot of dimensions ,part of them are the same.&lt;/P&gt;&lt;P&gt;i did it all but one dimension that I've tried to concat w/o success.&lt;/P&gt;&lt;P&gt;dates-in the Sales table it is sales by day while in the Objective it is-from date - to date.&lt;/P&gt;&lt;P&gt;concatenate it one to another is&amp;nbsp; a bit problematic from several reasons:&lt;/P&gt;&lt;P&gt;1.the objective table can contain years from 2015-2025- iterno() while function is running for long time,didnt managed to get it done.&lt;/P&gt;&lt;P&gt;2.The user neer to have am option to click on 2025 for example and to see the objective(without sales of course)which is impossible cause the&amp;nbsp;iterno() while function is based on the sales that ends in 2020.&lt;/P&gt;&lt;P&gt;tried in addition to make an auto calendar but there are more then 100 million lines and didn't managed to do it in a Intervalmatch as well.&lt;/P&gt;&lt;P&gt;i'll be glad for any advice/script example how to get it done.&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:04:24 GMT</pubDate>
    <dc:creator>Randomize1978</dc:creator>
    <dc:date>2024-11-16T00:04:24Z</dc:date>
    <item>
      <title>Concatenate tables with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1738929#M590723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have a situation where i need to concatenate Sales table with objectives table.&lt;/P&gt;&lt;P&gt;both tables has a lot of dimensions ,part of them are the same.&lt;/P&gt;&lt;P&gt;i did it all but one dimension that I've tried to concat w/o success.&lt;/P&gt;&lt;P&gt;dates-in the Sales table it is sales by day while in the Objective it is-from date - to date.&lt;/P&gt;&lt;P&gt;concatenate it one to another is&amp;nbsp; a bit problematic from several reasons:&lt;/P&gt;&lt;P&gt;1.the objective table can contain years from 2015-2025- iterno() while function is running for long time,didnt managed to get it done.&lt;/P&gt;&lt;P&gt;2.The user neer to have am option to click on 2025 for example and to see the objective(without sales of course)which is impossible cause the&amp;nbsp;iterno() while function is based on the sales that ends in 2020.&lt;/P&gt;&lt;P&gt;tried in addition to make an auto calendar but there are more then 100 million lines and didn't managed to do it in a Intervalmatch as well.&lt;/P&gt;&lt;P&gt;i'll be glad for any advice/script example how to get it done.&lt;/P&gt;&lt;P&gt;thank you very much&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:04:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1738929#M590723</guid>
      <dc:creator>Randomize1978</dc:creator>
      <dc:date>2024-11-16T00:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate tables with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1738962#M590724</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You mentioned interval match, that's part of the solution&lt;/P&gt;&lt;P&gt;I would go for a link table that holds the similliar dimensions, date, from, to.&lt;/P&gt;&lt;P&gt;Getting the from / to will be used with interval match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Final layout suppose to be as follows:&lt;/P&gt;&lt;P&gt;Sales : Index_Sales (similliar dimensions + date) and other fields&lt;/P&gt;&lt;P&gt;Target: Index_Target + Target_Value&lt;/P&gt;&lt;P&gt;Linke table: Dimensions, Date, From, To&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the attached code, created the sales and targets manually, you can naturally replace it with yours.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;Transactions:&lt;BR /&gt;load Dim1&amp;amp;'|'&amp;amp;Dim2&amp;amp;'|'&amp;amp;Dim3&amp;amp;'|'&amp;amp;Date as Index_Sales,*;&lt;BR /&gt;Load&lt;BR /&gt;TransLineID,&lt;BR /&gt;TransID,&lt;BR /&gt;Date,&lt;BR /&gt;mod(TransID,26)+1 as Num,&lt;BR /&gt;Pick(Ceil(3*Rand1),'A','B','C') as Dim1,&lt;BR /&gt;Pick(Ceil(6*Rand1),'a','b','c','d','e','f') as Dim2,&lt;BR /&gt;Pick(Ceil(3*Rand()),'X','Y','Z') as Dim3,&lt;BR /&gt;Round(1000*Rand()*Rand()*Rand1) as Expression1,&lt;BR /&gt;Round( 10*Rand()*Rand()*Rand1) as Expression2,&lt;BR /&gt;Round(Rand()*Rand1,0.00001) as Expression3;&lt;BR /&gt;Load&lt;BR /&gt;date(Today()+IterNo()+floor(Rand()*100)) as Date,&lt;BR /&gt;Rand() as Rand1,&lt;BR /&gt;IterNo() as TransLineID,&lt;BR /&gt;RecNo() as TransID&lt;BR /&gt;Autogenerate 1000&lt;BR /&gt;While Rand()&amp;lt;=0.5 or IterNo()=1;&lt;/P&gt;&lt;P&gt;Targets:&lt;BR /&gt;load Dim1&amp;amp;'|'&amp;amp;Dim2&amp;amp;'|'&amp;amp;Dim3&amp;amp;'|'&amp;amp;From&amp;amp;'|'&amp;amp;To as Index_Targets,*;&lt;BR /&gt;LOAD&lt;BR /&gt;Dim1,Dim2,Dim3,sum(Expression1) as Target,&lt;BR /&gt;date(Today()+floor(Rand()*10)) as From,&lt;BR /&gt;date(Today()+floor(Rand()*100)+20) as To&lt;BR /&gt;Resident Transactions&lt;BR /&gt;group by Dim1, Dim2, Dim3;&lt;/P&gt;&lt;P&gt;LinkTable:&lt;BR /&gt;IntervalMatch ( Date,Dim1,Dim2,Dim3 )&lt;BR /&gt;LOAD Distinct From, To,Dim1,Dim2,Dim3&lt;BR /&gt;Resident Targets;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;left join(LinkTable)&lt;BR /&gt;load&lt;BR /&gt;Distinct&lt;BR /&gt;Dim1&amp;amp;'|'&amp;amp;Dim2&amp;amp;'|'&amp;amp;Dim3&amp;amp;'|'&amp;amp;From&amp;amp;'|'&amp;amp;To as Index_Targets,&lt;BR /&gt;Dim1&amp;amp;'|'&amp;amp;Dim2&amp;amp;'|'&amp;amp;Dim3&amp;amp;'|'&amp;amp;Date as Index_Sales,&lt;BR /&gt;Dim1,Dim2,Dim3,From,To, Date&lt;BR /&gt;Resident LinkTable;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;drop fields Dim1,Dim2,Dim3,From,To from Targets;&lt;BR /&gt;drop fields Dim1,Dim2,Dim3,Date from Transactions;&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;I hope it helps,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 20:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1738962#M590724</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2020-08-26T20:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate tables with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1739474#M590725</link>
      <description>&lt;P&gt;thank you,however i didnt manage to understand the things you did with the below quete i will be very thankfull to understand it.:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;mod(TransID,26)+1 as Num,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pick(Ceil(3*Rand1),'A','B','C') as Dim1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pick(Ceil(6*Rand1),'a','b','c','d','e','f') as Dim2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pick(Ceil(3*Rand()),'X','Y','Z') as Dim3,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Round(1000*Rand()*Rand()*Rand1) as Expression1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Round( 10*Rand()*Rand()*Rand1) as Expression2,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Round(Rand()*Rand1,0.00001) as Expression3;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and the script is stopped when looking for a link table.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1739474#M590725</guid>
      <dc:creator>Randomize1978</dc:creator>
      <dc:date>2020-08-28T13:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate tables with dates</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1742134#M590726</link>
      <description>&lt;P&gt;See the following Design Blog post regarding the Link Table:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Concatenate-vs-Link-Table/ba-p/1467569" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/Concatenate-vs-Link-Table/ba-p/1467569&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For the others, I would use the&amp;nbsp;&lt;A href="http://help.qlik.com" target="_self"&gt;Help&lt;/A&gt;&amp;nbsp;site to try to understand and reply back if you still have further questions after that, but you may find further information on some of those in the&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_self"&gt;Design Blog&lt;/A&gt;&amp;nbsp; area too.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 19:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-tables-with-dates/m-p/1742134#M590726</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-09-08T19:19:50Z</dc:date>
    </item>
  </channel>
</rss>

