<?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: Use fieldNames within a table to determine algorithm and get a result in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-fieldNames-within-a-table-to-determine-algorithm-and-get-a/m-p/1694735#M1314127</link>
    <description>&lt;P&gt;&amp;nbsp;hi, here this a possible solution&lt;/P&gt;&lt;P&gt;dados:&lt;BR /&gt;LOAD&lt;BR /&gt;Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B')) AS CAL,&lt;BR /&gt;if(Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B'))='*',fieldA * fieldB,&lt;BR /&gt;if(Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B'))='/',fieldB / fieldA,&lt;BR /&gt;if(Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B'))='',fieldB&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;) as Result,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* Inline [&lt;BR /&gt;fieldA, fieldB, algorithm&lt;BR /&gt;1, 3, fieldA * fieldB&lt;BR /&gt;2, 4, fieldB&lt;BR /&gt;2, 8, fieldB / fieldA&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danilostochi_0-1587320979428.png" style="width: 420px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32095iF511BC8918266E6D/image-dimensions/420x137?v=v2" width="420" height="137" role="button" title="danilostochi_0-1587320979428.png" alt="danilostochi_0-1587320979428.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 19 Apr 2020 18:30:00 GMT</pubDate>
    <dc:creator>danilostochi</dc:creator>
    <dc:date>2020-04-19T18:30:00Z</dc:date>
    <item>
      <title>Use fieldNames within a table to determine algorithm and get a result</title>
      <link>https://community.qlik.com/t5/QlikView/Use-fieldNames-within-a-table-to-determine-algorithm-and-get-a/m-p/1694724#M1314123</link>
      <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I am struggling with something that should be reallly easy &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have this table:&lt;/P&gt;&lt;TABLE width="429px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="97.3333px"&gt;fieldA&lt;/TD&gt;&lt;TD width="148px"&gt;fieldB&lt;/TD&gt;&lt;TD width="182.667px"&gt;algorithm&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="97.3333px"&gt;1&lt;/TD&gt;&lt;TD width="148px"&gt;3&lt;/TD&gt;&lt;TD width="182.667px"&gt;fieldA*fieldB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="97.3333px"&gt;2&lt;/TD&gt;&lt;TD width="148px"&gt;4&lt;/TD&gt;&lt;TD width="182.667px"&gt;fieldB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="97.3333px"&gt;2&lt;/TD&gt;&lt;TD width="148px"&gt;8&lt;/TD&gt;&lt;TD width="182.667px"&gt;fieldB/fieldA&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and just want to obtain a result field such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="430"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="80"&gt;fieldA&lt;/TD&gt;&lt;TD width="121"&gt;fieldB&lt;/TD&gt;&lt;TD width="149"&gt;algorithm&lt;/TD&gt;&lt;TD width="80"&gt;result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;fieldA*fieldB&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;fieldB&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;fieldB/fieldA&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I "catch" fieldA and field B to get result?&lt;/P&gt;&lt;P&gt;I need to "make it" within the script.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;BR /&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-fieldNames-within-a-table-to-determine-algorithm-and-get-a/m-p/1694724#M1314123</guid>
      <dc:creator>lfalmoguera</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Use fieldNames within a table to determine algorithm and get a result</title>
      <link>https://community.qlik.com/t5/QlikView/Use-fieldNames-within-a-table-to-determine-algorithm-and-get-a/m-p/1694735#M1314127</link>
      <description>&lt;P&gt;&amp;nbsp;hi, here this a possible solution&lt;/P&gt;&lt;P&gt;dados:&lt;BR /&gt;LOAD&lt;BR /&gt;Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B')) AS CAL,&lt;BR /&gt;if(Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B'))='*',fieldA * fieldB,&lt;BR /&gt;if(Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B'))='/',fieldB / fieldA,&lt;BR /&gt;if(Trim(PurgeChar(algorithm,'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B'))='',fieldB&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;) as Result,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;* Inline [&lt;BR /&gt;fieldA, fieldB, algorithm&lt;BR /&gt;1, 3, fieldA * fieldB&lt;BR /&gt;2, 4, fieldB&lt;BR /&gt;2, 8, fieldB / fieldA&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danilostochi_0-1587320979428.png" style="width: 420px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/32095iF511BC8918266E6D/image-dimensions/420x137?v=v2" width="420" height="137" role="button" title="danilostochi_0-1587320979428.png" alt="danilostochi_0-1587320979428.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Apr 2020 18:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-fieldNames-within-a-table-to-determine-algorithm-and-get-a/m-p/1694735#M1314127</guid>
      <dc:creator>danilostochi</dc:creator>
      <dc:date>2020-04-19T18:30:00Z</dc:date>
    </item>
  </channel>
</rss>

