<?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: Merge of two fields from FACT table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Merge-of-two-fields-from-FACT-table/m-p/2252#M337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of doing a left join.... just do this in your Fact Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ....,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(FLAG1 = 1 or FLAG2 = 1, 1) as DOPPELBESUCH_FLAG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2018 13:08:21 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-17T13:08:21Z</dc:date>
    <item>
      <title>Merge of two fields from FACT table</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-of-two-fields-from-FACT-table/m-p/2251#M336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently asking myself how I can merge two flag fields from my FACT Table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within my Script I create two separate flags depending on different conditions and stored both of them into my FACT table as&amp;nbsp; FLAG1 and FLAG2. he value of the both flag fields is either 1 or it's empty. Now I want to merge both flags into one field.&lt;/P&gt;&lt;P&gt;The result should be also the value 1 or if the conditions is wrong it should stay empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to solve this with the below formula. But the result duplicates the records within my fact table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (FACTS) &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLAG1&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 1&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLAG2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 1)&lt;BR /&gt; , 1) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;FLAG&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; FACTS;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance and best regards,&lt;/P&gt;&lt;P&gt;Claus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-of-two-fields-from-FACT-table/m-p/2251#M336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-17T13:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Merge of two fields from FACT table</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-of-two-fields-from-FACT-table/m-p/2252#M337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of doing a left join.... just do this in your Fact Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Fact:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD ....,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLAG2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(FLAG1 = 1 or FLAG2 = 1, 1) as DOPPELBESUCH_FLAG&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-of-two-fields-from-FACT-table/m-p/2252#M337</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-17T13:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Merge of two fields from FACT table</title>
      <link>https://community.qlik.com/t5/QlikView/Merge-of-two-fields-from-FACT-table/m-p/2253#M338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was the crucial hint. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2018 13:37:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Merge-of-two-fields-from-FACT-table/m-p/2253#M338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-17T13:37:24Z</dc:date>
    </item>
  </channel>
</rss>

