<?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 How to derived a field based on 4 fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-derived-a-field-based-on-4-fields/m-p/974887#M333312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Project Details&amp;nbsp; table.In this table we are maintaining Employee,Project &amp;amp; Submitted weekly time sheets.&lt;/P&gt;&lt;P&gt;Yellow Column are calculated fields. In Excel there is a formula for the yellow columns [=COUNT(C3:F3)] and =[COUNTIF(C3:F3,4)+COUNTIF(C3:F3,5)].&lt;/P&gt;&lt;P&gt;Logic behind calculation of Total Expected Occurrances for 05/July-11/July to&amp;nbsp; 26/July-01/August .&lt;/P&gt;&lt;P&gt;Suppose in First row of 05/July-11/July to&amp;nbsp; 26/July-01/August (4 Columns)if any number is found then it will return 1 ,if it will get NA then return 0. Like first row of field "Total Expected Occurances for July" is 4. Same for second row.&lt;/P&gt;&lt;P&gt;It got 0 only one time so it returns value 1.&lt;/P&gt;&lt;P&gt;For "Occurances &amp;gt;= 4" field if it got 4 or greater than 4 then it returns 1 otherwise 0.&lt;/P&gt;&lt;P&gt;In first row of 05/July-11/July to&amp;nbsp; 26/July-01/August fields its result is 4 because it got 4 four times.&lt;/P&gt;&lt;P&gt;I second row it does't get 4 so&amp;nbsp; it returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want these results in Qlikview.Would appreciate if you can suggest any idea how we can handle&lt;/P&gt;&lt;P&gt;it in backend script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Oct 2015 06:17:18 GMT</pubDate>
    <dc:creator>rishikeshtiwari</dc:creator>
    <dc:date>2015-10-01T06:17:18Z</dc:date>
    <item>
      <title>How to derived a field based on 4 fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-derived-a-field-based-on-4-fields/m-p/974887#M333312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Project Details&amp;nbsp; table.In this table we are maintaining Employee,Project &amp;amp; Submitted weekly time sheets.&lt;/P&gt;&lt;P&gt;Yellow Column are calculated fields. In Excel there is a formula for the yellow columns [=COUNT(C3:F3)] and =[COUNTIF(C3:F3,4)+COUNTIF(C3:F3,5)].&lt;/P&gt;&lt;P&gt;Logic behind calculation of Total Expected Occurrances for 05/July-11/July to&amp;nbsp; 26/July-01/August .&lt;/P&gt;&lt;P&gt;Suppose in First row of 05/July-11/July to&amp;nbsp; 26/July-01/August (4 Columns)if any number is found then it will return 1 ,if it will get NA then return 0. Like first row of field "Total Expected Occurances for July" is 4. Same for second row.&lt;/P&gt;&lt;P&gt;It got 0 only one time so it returns value 1.&lt;/P&gt;&lt;P&gt;For "Occurances &amp;gt;= 4" field if it got 4 or greater than 4 then it returns 1 otherwise 0.&lt;/P&gt;&lt;P&gt;In first row of 05/July-11/July to&amp;nbsp; 26/July-01/August fields its result is 4 because it got 4 four times.&lt;/P&gt;&lt;P&gt;I second row it does't get 4 so&amp;nbsp; it returns 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want these results in Qlikview.Would appreciate if you can suggest any idea how we can handle&lt;/P&gt;&lt;P&gt;it in backend script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 06:17:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-derived-a-field-based-on-4-fields/m-p/974887#M333312</guid>
      <dc:creator>rishikeshtiwari</dc:creator>
      <dc:date>2015-10-01T06:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to derived a field based on 4 fields</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-derived-a-field-based-on-4-fields/m-p/974888#M333313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rishi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Customer:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Mapping&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; ID, Name&lt;BR /&gt; CID001, Customer001&lt;BR /&gt; CID002, Customer002&lt;BR /&gt; CID003, Customer003&lt;BR /&gt; CID004, Customer004&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; SALE:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Inline&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; Customer_ID, Product, QTY&lt;BR /&gt; CID001, A, 100&lt;BR /&gt; CID002, B, 200&lt;BR /&gt; CID001, B, 150&lt;BR /&gt; CID003, C, 400&lt;BR /&gt; CID004, 4, 300&lt;BR /&gt; CID003, B, 200&lt;BR /&gt; CID005, 2, 300&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; FINAL:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer_ID&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: #0000ff; font-size: 8pt;"&gt;Num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,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;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;ApplyMap&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('Customer',&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,'UNKNOWN') &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;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SALE;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; SALE; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if you see product column&amp;nbsp; &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: #0000ff; font-size: 8pt;"&gt;Num#&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),0,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;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt; - iam checking if its a number ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 07:23:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-derived-a-field-based-on-4-fields/m-p/974888#M333313</guid>
      <dc:creator />
      <dc:date>2015-10-01T07:23:57Z</dc:date>
    </item>
  </channel>
</rss>

