<?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: Add a field based on another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767419#M1298476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this example..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 18:55:38 GMT</pubDate>
    <dc:creator>kamal_sanguri</dc:creator>
    <dc:date>2014-12-19T18:55:38Z</dc:date>
    <item>
      <title>Add a field based on another field</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767415#M1298465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to add a filed that has a number for 'TimeReported' on a service desk ticket number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My table looks like this.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid #000000; width: 464px; height: 81px;" width="462"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Service Desk Ticket&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Time Reported&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;25222&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;25222&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;29612&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I want to add up Time Reported if the Service Desk Ticket number is the same, and only show one row instead of two separate rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do this in the script or maybe an expression for the table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any help is appreciated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767415#M1298465</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add a field based on another field</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767416#M1298469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need a Straight Table with the Ticked Number as dimension and the SUM() of the time values as an expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Ernesto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 15:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767416#M1298469</guid>
      <dc:creator>consenit</dc:creator>
      <dc:date>2014-12-19T15:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add a field based on another field</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767417#M1298473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try below code in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Data:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Service Desk Ticket]&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;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Time Reported]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &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 style="color: #800000; font-size: 8pt;"&gt;[Time Reported]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Table &lt;BR /&gt; GROUP BY [Service Desk Ticket];&lt;BR /&gt; &lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 16:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767417#M1298473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-19T16:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add a field based on another field</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767418#M1298475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you don even need to change the script, use pivot table it will do it automatically for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 18:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767418#M1298475</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2014-12-19T18:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Add a field based on another field</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767419#M1298476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see this example..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 18:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767419#M1298476</guid>
      <dc:creator>kamal_sanguri</dc:creator>
      <dc:date>2014-12-19T18:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Add a field based on another field</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767420#M1298477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need all the rows sum up if there is single Service Desk Ticket then try this way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14190158858113544" jivemacro_uid="_14190158858113544" modifiedtitle="true"&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;LOAD * Inline&lt;/P&gt;
&lt;P&gt;[&lt;/P&gt;
&lt;P&gt;Service Desk Ticket,&amp;nbsp;&amp;nbsp;&amp;nbsp; Time Reported&lt;/P&gt;
&lt;P&gt;25222,&amp;nbsp;&amp;nbsp;&amp;nbsp; .5&lt;/P&gt;
&lt;P&gt;25222,&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;
&lt;P&gt;29612,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD [Service Desk Ticket],&amp;nbsp;&amp;nbsp;&amp;nbsp; sum([Time Reported]) as [Time Reported]&lt;/P&gt;
&lt;P&gt;Resident T1 Group By [Service Desk Ticket];&lt;/P&gt;
&lt;P&gt;DROP Table T1;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in result you get the output as but question is what is the format of Time Reported here will it be minutes or what if values come in different format then you need to convert this field into minutes i guess. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="211"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="124"&gt;Service Desk Ticket&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="87"&gt;Time Reported&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;25222&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;4.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;29612&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 19:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-field-based-on-another-field/m-p/767420#M1298477</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-12-19T19:07:23Z</dc:date>
    </item>
  </channel>
</rss>

