<?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 help script fieldvalue and peek in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-script-fieldvalue-and-peek/m-p/214720#M68234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;the error message disappear but my table EXIGENCE MERE is empty&lt;/P&gt;&lt;P&gt;i think is because fieldvalue('id_req_parent',1) is empty in my previous example i would like have 0 for the first result etc...&lt;/P&gt;&lt;P&gt;my script is may i have to use a "loop" or "for" to parse the table and compute all "EXIGENCE MERE"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;cat &lt;P&gt;,&lt;/P&gt;&lt;P&gt;complexe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`id_project`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`id_req`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`id_req_parent`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;origine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;priority&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`req_description`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`req_name`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;AS&lt;/B&gt; [exigence] &lt;P&gt;,&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(fieldvalue('id_req_parent',1)=0,[req_name] ,peek([req_name],fieldvalue('id_req_parent',1)) ) &lt;B&gt;AS&lt;/B&gt; [EXIGENCE MERE] &lt;P&gt;,&lt;/P&gt;&lt;P&gt;`req_type`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;verif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;version;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;SELECT&lt;/B&gt; &lt;P&gt;cat,&lt;/P&gt;&lt;P&gt;complexe,&lt;/P&gt;&lt;P&gt;`id_project`,&lt;/P&gt;&lt;P&gt;`id_req`,&lt;/P&gt;&lt;P&gt;`id_req_parent`,&lt;/P&gt;&lt;P&gt;origine,&lt;/P&gt;&lt;P&gt;priority,&lt;/P&gt;&lt;P&gt;reference,&lt;/P&gt;&lt;P&gt;`req_description`,&lt;/P&gt;&lt;P&gt;`req_name`,&lt;/P&gt;&lt;P&gt;`req_type`,&lt;/P&gt;&lt;P&gt;state,&lt;/P&gt;&lt;P&gt;verif,&lt;/P&gt;&lt;P&gt;version&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`salome_pp_bdd`.REQUIREMENTS;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Oct 2009 17:43:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-13T17:43:38Z</dc:date>
    <item>
      <title>help script fieldvalue and peek</title>
      <link>https://community.qlik.com/t5/QlikView/help-script-fieldvalue-and-peek/m-p/214718#M68232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i have this table in mysql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 233pt; border-collapse: collapse;" width="310"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL style="width: 99pt; mso-width-source: userset; mso-width-alt: 4827;" width="132" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584;" width="98" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl24" height="20" style="width: 60pt; height: 15pt; background-color: transparent; border: #ece9d8;" width="80"&gt;&lt;STRONG&gt;id_req&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24" style="width: 99pt; background-color: transparent; border: #ece9d8;" width="132"&gt;&lt;STRONG&gt;req_name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24" style="width: 74pt; background-color: transparent; border: #ece9d8;" width="98"&gt;&lt;STRONG&gt;id_req_parent&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Documentation projet&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;3&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Maintenance&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;4&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;SGDT&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;6&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Supervision&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;7&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Sauvegardes&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;8&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Test a/r et de rupture&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;9&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;12&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;13&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Documentation projet&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;14&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Maintenance&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;15&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;SGDT&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;16&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Supervision&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;17&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Sauvegardes&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;18&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Test a/r et de rupture&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;20&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;21&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;22&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Documentation projet&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;23&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Maintenance&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;24&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;SGDT&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I do this in excel, i computed EXIGENCE MERE in excel with this formule&lt;/P&gt;&lt;P&gt;=SI(D2=0;C2;RECHERCHEV(D2;A:D;3;FAUX))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 332pt; border-collapse: collapse;" width="442"&gt;&lt;COLGROUP&gt;&lt;COL style="width: 60pt;" width="80" /&gt;&lt;COL span="2" style="width: 99pt; mso-width-source: userset; mso-width-alt: 4827;" width="132" /&gt;&lt;COL style="width: 74pt; mso-width-source: userset; mso-width-alt: 3584;" width="98" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl24" height="20" style="width: 60pt; height: 15pt; background-color: transparent; border: #ece9d8;" width="80"&gt;&lt;STRONG&gt;id_req&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl26" style="width: 99pt; background-color: transparent; border: #ece9d8;" width="132"&gt;EXIGENCE MERE&lt;/TD&gt;&lt;TD class="xl24" style="width: 99pt; background-color: transparent; border: #ece9d8;" width="132"&gt;&lt;STRONG&gt;req_name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl24" style="width: 74pt; background-color: transparent; border: #ece9d8;" width="98"&gt;&lt;STRONG&gt;id_req_parent&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;2&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Documentation projet&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;3&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Maintenance&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;4&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;SGDT&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;6&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Supervision&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;7&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Sauvegardes&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;8&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Test a/r et de rupture&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;9&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;12&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;13&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Documentation projet&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;14&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Maintenance&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;15&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;SGDT&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;16&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Supervision&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;17&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Sauvegardes&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;18&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Test a/r et de rupture&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;20&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette exploitablilité&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;21&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Recette interne&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;22&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Documentation projet&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;23&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;Maintenance&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;TR height="20" style="height: 15pt;"&gt;&lt;TD class="xl25" height="20" style="height: 15pt; background-color: transparent; border: #ece9d8;"&gt;24&lt;/TD&gt;&lt;TD class="xl26" style="background-color: transparent; border: #ece9d8;"&gt;Recette référentiel&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;SGDT&lt;/TD&gt;&lt;TD class="xl25" style="background-color: transparent; border: #ece9d8;"&gt;19&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;How can i do this in qlikview script?&lt;/P&gt;&lt;P&gt;i try to use this but i have an error message ") expected"&lt;/P&gt;&lt;P&gt;if(fieldvalue('id_req_parent',1)=0,[req_name] AS [EXIGENCE MERE],peek([req_name],fieldvalue('id_req_parent',1)) AS [EXIGENCE MERE]),*;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 16:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-script-fieldvalue-and-peek/m-p/214718#M68232</guid>
      <dc:creator />
      <dc:date>2009-10-13T16:46:01Z</dc:date>
    </item>
    <item>
      <title>help script fieldvalue and peek</title>
      <link>https://community.qlik.com/t5/QlikView/help-script-fieldvalue-and-peek/m-p/214719#M68233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it &lt;IMG alt="Geeked" src="http://community.qlik.com/emoticons/emotion-15.gif" /&gt;&lt;/P&gt;&lt;P&gt;if(fieldvalue('id_req_parent',1)=0,[req_name] ,peek([req_name],fieldvalue('id_req_parent',1)) ) AS [EXIGENCE MERE]&lt;/P&gt;&lt;P&gt;Daniela&lt;/P&gt;&lt;P&gt;PS: can you attach the example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 17:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-script-fieldvalue-and-peek/m-p/214719#M68233</guid>
      <dc:creator />
      <dc:date>2009-10-13T17:09:46Z</dc:date>
    </item>
    <item>
      <title>help script fieldvalue and peek</title>
      <link>https://community.qlik.com/t5/QlikView/help-script-fieldvalue-and-peek/m-p/214720#M68234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;the error message disappear but my table EXIGENCE MERE is empty&lt;/P&gt;&lt;P&gt;i think is because fieldvalue('id_req_parent',1) is empty in my previous example i would like have 0 for the first result etc...&lt;/P&gt;&lt;P&gt;my script is may i have to use a "loop" or "for" to parse the table and compute all "EXIGENCE MERE"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;cat &lt;P&gt;,&lt;/P&gt;&lt;P&gt;complexe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`id_project`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`id_req`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`id_req_parent`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;origine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;priority&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`req_description`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;`req_name`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;AS&lt;/B&gt; [exigence] &lt;P&gt;,&lt;/P&gt;&lt;P&gt;if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(fieldvalue('id_req_parent',1)=0,[req_name] ,peek([req_name],fieldvalue('id_req_parent',1)) ) &lt;B&gt;AS&lt;/B&gt; [EXIGENCE MERE] &lt;P&gt;,&lt;/P&gt;&lt;P&gt;`req_type`&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;verif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;version;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;SELECT&lt;/B&gt; &lt;P&gt;cat,&lt;/P&gt;&lt;P&gt;complexe,&lt;/P&gt;&lt;P&gt;`id_project`,&lt;/P&gt;&lt;P&gt;`id_req`,&lt;/P&gt;&lt;P&gt;`id_req_parent`,&lt;/P&gt;&lt;P&gt;origine,&lt;/P&gt;&lt;P&gt;priority,&lt;/P&gt;&lt;P&gt;reference,&lt;/P&gt;&lt;P&gt;`req_description`,&lt;/P&gt;&lt;P&gt;`req_name`,&lt;/P&gt;&lt;P&gt;`req_type`,&lt;/P&gt;&lt;P&gt;state,&lt;/P&gt;&lt;P&gt;verif,&lt;/P&gt;&lt;P&gt;version&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;FROM&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;`salome_pp_bdd`.REQUIREMENTS;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2009 17:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-script-fieldvalue-and-peek/m-p/214720#M68234</guid>
      <dc:creator />
      <dc:date>2009-10-13T17:43:38Z</dc:date>
    </item>
  </channel>
</rss>

