<?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: Re: Creating dimension for set analysis by combining dimensions from two datasets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584801#M1097407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Niek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you detail a bit more how your two tables are structured and linked to each other? Also, a small sample application (best using some small inline tables, so one can modify and reload the script) would help us to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2014 15:11:27 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-05-01T15:11:27Z</dc:date>
    <item>
      <title>Creating dimension for set analysis by combining dimensions from two datasets</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584798#M1097404</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;At the moment, I get both the scheduled time arrival time and the actual arrival time from the same file. To calculate the performance (truck arrives on the correct day), I added the following line to my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(stp_scheduled_latest-stp_arrival_date)&amp;gt;=0,1,0) as [On time]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To calculate the number of late shipments, I use the following formula in my table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;[On time]={0}, FlagA={'A'}, FlagB={'B'}&amp;gt;} DISTINCT Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to calculate the performance, I used this formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;[On time]={1}, FlagA={'A'}, FlagB={'B'}&amp;gt;} DISTINCT Order)/count({&amp;lt;FlagA={'A'}, FlagB={'B'}&amp;gt;} DISTINCT Order)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have flagged two files, because in File A I have the transport data and in file B orderdata, and I only want to see files that are in both data. The problem I have now, is that in stead of using both the scheduled arrival as the actual arrival from the transport file, I have to use the scheduled arrival time from the order file (B) and the actual arrival from the order file (A).&amp;nbsp; But as a result, I cannot use the If-statement in my script in tabel A anymore, and as a result also not the set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 13:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584798#M1097404</guid>
      <dc:creator />
      <dc:date>2014-05-01T13:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dimension for set analysis by combining dimensions from two datasets</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584799#M1097405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps you can use a join to create one table with some data from both files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13989502817284551 jive_macro_code" jivemacro_uid="_13989502817284551"&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;LOAD * from FileA;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;join(Temp)&lt;/P&gt;
&lt;P&gt;LOAD OrderID, stp_scheduled_latest as stp_scheduled_latest_B from FileB;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;Load *, if(stp_scheduled_latest_B - stp_arrival_date)&amp;gt;=0,1,0) as [On time]&lt;/P&gt;
&lt;P&gt;Resident Temp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;drop Table Temp;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 13:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584799#M1097405</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-05-01T13:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dimension for set analysis by combining dimensions from two datasets</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584800#M1097406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could do that, but if I combine the data to one table, how do I make sure I only use data that is in both datasources?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Niek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 15:06:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584800#M1097406</guid>
      <dc:creator />
      <dc:date>2014-05-01T15:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Creating dimension for set analysis by combining dimensions from two datasets</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584801#M1097407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Niek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you detail a bit more how your two tables are structured and linked to each other? Also, a small sample application (best using some small inline tables, so one can modify and reload the script) would help us to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 15:11:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-dimension-for-set-analysis-by-combining-dimensions-from/m-p/584801#M1097407</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-05-01T15:11:27Z</dc:date>
    </item>
  </channel>
</rss>

