<?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 compare three field values and load the data into report in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1756989#M719337</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have ID value with duplicates, here need to load the highlighted data into qlik. For example, load the unique ID's into qlik with primary and secondary are having value or not.&lt;/P&gt;&lt;P&gt;Scenarios:&lt;/P&gt;&lt;P&gt;unique id with primary and secondary having both values(both)&lt;/P&gt;&lt;P&gt;unique id with primary value and secondary having no value(primary only)&lt;BR /&gt;unique id no primary value and secondary having value (secondary only)&lt;/P&gt;&lt;P&gt;unique id but no values in primary and secondary(both has no values)&lt;/P&gt;&lt;P&gt;tried like this:&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) &amp;gt;0 and len(secondary)&amp;gt;0, ID,&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) =0 and len(secondary)=0, ID,&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) &amp;gt;0 and len(secondary)=0, ID,&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) =0 and len(secondary)&amp;gt;0, ID))))&lt;/P&gt;&lt;P&gt;but not working as expected&lt;/P&gt;&lt;P&gt;Input table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gyuvaraj_1-1603965068628.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43195iC3EF5F45CB4D8BB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gyuvaraj_1-1603965068628.png" alt="gyuvaraj_1-1603965068628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gyuvaraj_2-1603965122260.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43196i3DC904894BE2F7A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gyuvaraj_2-1603965122260.png" alt="gyuvaraj_2-1603965122260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuvaraj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:43:10 GMT</pubDate>
    <dc:creator>gyuvaraj</dc:creator>
    <dc:date>2024-11-15T23:43:10Z</dc:date>
    <item>
      <title>How to compare three field values and load the data into report</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1756989#M719337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have ID value with duplicates, here need to load the highlighted data into qlik. For example, load the unique ID's into qlik with primary and secondary are having value or not.&lt;/P&gt;&lt;P&gt;Scenarios:&lt;/P&gt;&lt;P&gt;unique id with primary and secondary having both values(both)&lt;/P&gt;&lt;P&gt;unique id with primary value and secondary having no value(primary only)&lt;BR /&gt;unique id no primary value and secondary having value (secondary only)&lt;/P&gt;&lt;P&gt;unique id but no values in primary and secondary(both has no values)&lt;/P&gt;&lt;P&gt;tried like this:&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) &amp;gt;0 and len(secondary)&amp;gt;0, ID,&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) =0 and len(secondary)=0, ID,&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) &amp;gt;0 and len(secondary)=0, ID,&lt;/P&gt;&lt;P&gt;if(Acc_type = 'J' and len(primary) =0 and len(secondary)&amp;gt;0, ID))))&lt;/P&gt;&lt;P&gt;but not working as expected&lt;/P&gt;&lt;P&gt;Input table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gyuvaraj_1-1603965068628.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43195iC3EF5F45CB4D8BB6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gyuvaraj_1-1603965068628.png" alt="gyuvaraj_1-1603965068628.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gyuvaraj_2-1603965122260.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43196i3DC904894BE2F7A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gyuvaraj_2-1603965122260.png" alt="gyuvaraj_2-1603965122260.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yuvaraj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1756989#M719337</guid>
      <dc:creator>gyuvaraj</dc:creator>
      <dc:date>2024-11-15T23:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare three field values and load the data into report</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757090#M719338</link>
      <description>&lt;P&gt;what results did you get from what you tried. BTW, if your logic for the IF statements were the opposite of what you have the statement would be shorter.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 15:03:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757090#M719338</guid>
      <dc:creator>villegasi03</dc:creator>
      <dc:date>2020-10-29T15:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare three field values and load the data into report</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757091#M719339</link>
      <description>&lt;P&gt;i would load the data three times, once for the rows that have both metrics populated, 2nd to load any metric populated, 3rd rows where no metrics are populated.&amp;nbsp; this way you ensure the IDs are unique:&lt;BR /&gt;&lt;BR /&gt;data: load Id, Id as tmpId, Acc, Primary, Secondary from &amp;lt;WHEREEVER&amp;gt; where not isnull(Primary) and not isnull(Secondary);&lt;/P&gt;&lt;P&gt;concatenate(data)&amp;nbsp;load Id, Id as tmpId, Acc, Primary, Secondary from &amp;lt;WHEREEVER&amp;gt; where (not isnull(Primary) or not isnull(Secondary)) and not exists(tmpId, Id);&lt;/P&gt;&lt;P&gt;concatenate(data)&amp;nbsp;load Id, Id as tmpId, Acc, Primary, Secondary from &amp;lt;WHEREEVER&amp;gt; where (isnull(Primary) and&amp;nbsp; isnull(Secondary)) and not exists(tmpId, Id);&lt;/P&gt;&lt;P&gt;drop field tmpId;&lt;/P&gt;&lt;P&gt;this assumes that when the field is blank its a null, if it is a space, check for spaces or len()&amp;gt;0&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 15:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757091#M719339</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-10-29T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare three field values and load the data into report</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757092#M719341</link>
      <description>&lt;P&gt;if you are loading this in your script if you want to separate the statements in OR statements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ID,&lt;/P&gt;&lt;P&gt;primary,&lt;/P&gt;&lt;P&gt;secondary&lt;/P&gt;&lt;P&gt;From InputTable&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp;(Acc_type = 'J' and len(primary) &amp;gt;0 and len(secondary)&amp;gt;0) OR&lt;/P&gt;&lt;P&gt;(Acc_type = 'J' and len(primary) =0 and len(secondary)=0) OR&lt;/P&gt;&lt;P&gt;(Acc_type = 'J' and len(primary) &amp;gt;0 and len(secondary)=0) OR&lt;/P&gt;&lt;P&gt;(Acc_type = 'J' and len(primary) =0 and len(secondary)&amp;gt;0);&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 15:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757092#M719341</guid>
      <dc:creator>villegasi03</dc:creator>
      <dc:date>2020-10-29T15:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare three field values and load the data into report</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757093#M719342</link>
      <description>&lt;P&gt;doing that way will take care of empty strings. Good call&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 15:10:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-compare-three-field-values-and-load-the-data-into-report/m-p/1757093#M719342</guid>
      <dc:creator>villegasi03</dc:creator>
      <dc:date>2020-10-29T15:10:55Z</dc:date>
    </item>
  </channel>
</rss>

