<?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: how to fetch value from another table if respective table contain zero value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472869#M176584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a chart with dimension Id and this as expresssion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(production=0 or production='-', [actual production],production)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use a similar expression in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(production=0 or production='-', [actual production],production) as ResultProduction&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Apr 2013 08:45:45 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-04-20T08:45:45Z</dc:date>
    <item>
      <title>how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472864#M176579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My scenaria is, I have two table with 2 column in each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 1 having columns, id and production&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table 2 having columns, id and actual production&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my requirment is, if my production value in table 1 is zero or - then fetch this value from table 2 from actual production column..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could any one plz help me for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 05:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472864#M176579</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2013-04-20T05:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472865#M176580</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD Id, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; production&lt;BR /&gt;FROM&lt;BR /&gt;D:\Community\test116A.xls&lt;BR /&gt;(biff, embedded labels, table is [table1$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(Table1)&lt;BR /&gt;LOAD Id, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [actual production]&lt;BR /&gt;FROM&lt;BR /&gt;D:\Community\test116A.xls&lt;BR /&gt;(biff, embedded labels, table is [table2$]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;Load Id as ID,if(IsNull(production) or production = 0 or production = '-',[actual production],production) as production,[actual production] Resident Table1;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 06:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472865#M176580</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-04-20T06:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472866#M176581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see the attached file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 08:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472866#M176581</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-04-20T08:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472867#M176582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly find the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mukram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 08:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472867#M176582</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2013-04-20T08:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472868#M176583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI, try the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;ID , Production&lt;/P&gt;&lt;P&gt;1,200&lt;/P&gt;&lt;P&gt;2,340&lt;/P&gt;&lt;P&gt;3,&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;Left Join&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;LOAD * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;ID , ActualProduction&lt;/P&gt;&lt;P&gt;1,230&lt;/P&gt;&lt;P&gt;3,450&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;LOAD ID , if(len(Production)=0, ActualProduction , Production) as&amp;nbsp; Production&lt;/P&gt;&lt;P&gt;Resident Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Tab1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//yusuf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 08:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472868#M176583</guid>
      <dc:creator />
      <dc:date>2013-04-20T08:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472869#M176584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a chart with dimension Id and this as expresssion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(production=0 or production='-', [actual production],production)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also use a similar expression in your load script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESULT:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(production=0 or production='-', [actual production],production) as ResultProduction&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Resident Table1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Table1;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 08:45:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472869#M176584</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-04-20T08:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472870#M176585</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;&lt;/P&gt;&lt;P&gt;Check this.. Its might not be optimized solution.. But its will solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 09:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472870#M176585</guid>
      <dc:creator />
      <dc:date>2013-04-20T09:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to fetch value from another table if respective table contain zero value</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472871#M176586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You kaushik &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working fine...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Apr 2013 09:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-fetch-value-from-another-table-if-respective-table/m-p/472871#M176586</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2013-04-20T09:58:32Z</dc:date>
    </item>
  </channel>
</rss>

