<?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 Multiple records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367152#M136507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried now, without success (i get blank as result for [aliquota stato])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 15:20:11 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-23T15:20:11Z</dc:date>
    <item>
      <title>Multiple records</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367150#M136505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you can see in the attached file, i load some data from an excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then i check if the field [codice agevolazione] is equal to some determined values, and in that case i use some variable to set a new field [aliquota stato]:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'A0100', '$(vAliqStatoA0100)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'A0160', '$(vAliqStatoA0160)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'B0210', '$(vAliqStatoB0210)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'E0100', '$(vAliqStatoE0100)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'H0100', '$(vAliqStatoH0100)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'L0100', '$(vAliqStatoL0100)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'L0110', '$(vAliqStatoL0110)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'R0100', '$(vAliqStatoR0100)',&lt;/P&gt;&lt;P&gt;if([codice agevolazione] = 'A0000', '$(vAliqStatoA0000)',))))))))) as [aliquota stato]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i run the script i get multiple rows for each original row, as if QV found more than one value in the [codice agevolazione] field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is completely unexpected, and i cannot understand why it works this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 14:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367150#M136505</guid>
      <dc:creator />
      <dc:date>2012-03-23T14:55:43Z</dc:date>
    </item>
    <item>
      <title>Multiple records</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367151#M136506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'$(vAliqStato' &amp;amp; [codice agevolazione] &amp;amp; ')' as [aliquota stato]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 14:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367151#M136506</guid>
      <dc:creator />
      <dc:date>2012-03-23T14:58:55Z</dc:date>
    </item>
    <item>
      <title>Multiple records</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367152#M136507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried now, without success (i get blank as result for [aliquota stato])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 15:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367152#M136507</guid>
      <dc:creator />
      <dc:date>2012-03-23T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple records</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367153#M136508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do those variables have values? Since the new result is the expression to display a variable, if the variable is blank it will return nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try setting one of the variables to see what it does.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;I just looked at your file, try linking this table to the original. It seems to be creating multiple records due to there not being a direct link, so for every line from the main table you get it multiplied by the total lines from the resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have no experience working with Replace loads or partial reload functions so I may be completely off.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 15:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-records/m-p/367153#M136508</guid>
      <dc:creator />
      <dc:date>2012-03-23T15:30:18Z</dc:date>
    </item>
  </channel>
</rss>

