<?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>article Summarize Time Columns in a Qlik NPrinting PixelPerfect Reports in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/ta-p/1671318</link>
    <description>&lt;P&gt;In this tutorial, we will use calculated fields to manage Qlik Sense columns with time data in Qlik NPrinting PixelPerfect reports. We will create formulas to extract days, hours and minutes from a duration column then we will calculate the sum and display it in the &lt;EM&gt;dd hh:ss&lt;/EM&gt; format.&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Environment:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik NPrinting" id="qlikNPrinting"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Before we get started:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To follow this tutorial you need to be familiar with PixelPerfect templates development process. We will not explain the details that are already covered in the official Help Site &lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/PixelPerfectReports/Intro-PixelPerfect-Reports.htm" target="_blank" rel="noopener"&gt;PixelPerfect reports&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="CommonComponentsQlik Sense"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;stores each date, time, and timestamp found in data as a date serial number as&lt;/SPAN&gt;&amp;nbsp;explained in&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/date-time-interpretation.htm" target="_blank" rel="noopener"&gt;Date and time interpretation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The tutorial uses the Qlik Sense demo app Help Desk Management from the link&amp;nbsp;&amp;nbsp;&lt;A href="https://demos.qlik.com/qliksense/HelpdeskManagement" target="_blank" rel="noopener"&gt;https://demos.qlik.com/qliksense/HelpdeskManagement.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a Qlik NPrinting connection to that app and wait until the cache is generated.&lt;/LI&gt;
&lt;LI&gt;To limit the number of rows used during the report development process, create a new filter. Set the&amp;nbsp;Case Owner field to the value Gerardo E. Ferroni and the&amp;nbsp;Subject field to New Laptop Request.&lt;/LI&gt;
&lt;LI&gt;Create a new PixelPerfect report and call it, for example,&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;PxP Sum Time Format from Sense Tutorial&lt;/EM&gt;&lt;SPAN&gt;, and add the filter.&amp;nbsp; Then open the template in the Qlik NPrinting Designer.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the Case Details straight table to the Levels node, create the related Details band and insert the Case Number, Case Owner and Duration columns. Add the GroupHeader and you should have a template like the following:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="020.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27801i3FC174251DF5B9B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="020.png" alt="020.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;If you run a report preview the duration column (last one on the right) will be displayed as a double number, but we want to see the days, hours and minutes. Applying the format string to the column will not work.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="030.png" style="width: 651px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27802i746B6C790779E66B/image-size/large?v=v2&amp;amp;px=999" role="button" title="030.png" alt="030.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;We will use PixelPerfect calculated fields to extract the Days, Hours and Minutes from the details row and show the totals. The integer part of the date and time is the number of days.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Right-click over the table name and select Add Calculated Field. In the Expression property add the formula&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Floor([emtEjp])&lt;/EM&gt;&lt;SPAN&gt;. In the &lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;(Name)&lt;/EM&gt;&lt;SPAN&gt; property insert &lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Days&lt;/EM&gt;&lt;SPAN&gt;. Drag and drop the Days box into the Details band. The result will be similar to:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="040.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27807iF1E336CDE7AA4D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="040.png" alt="040.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview and you will see the Days number.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="050.png" style="width: 785px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27809iFC2BAB984A9469B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="050.png" alt="050.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;To calculate the hours we will subtract the Days to the duration and multiply the result by 24. Add a new calculated field, call it Hours and insert the expression&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Floor(([emtEjp]-[Days])*24)&lt;/EM&gt;&lt;SPAN&gt;. You can use the name of an existing calculated field into another. We suggest to do this to keep the expressions more readable. Drag and drop the Hours field into the details band. The template will be similar to:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="060.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27811iD0739EACF55699D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="060.png" alt="060.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="070.png" style="width: 886px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27813iCF4BE332ECC400D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="070.png" alt="070.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;You can compare the results with the numbers in Qlik Sense to be sure they are correct. It is not mandatory to drag and drop all the calculated columns into the template. We are doing this for didactical reasons. You could also develop a single, more complex, formula instead of doing all single steps.&lt;/LI&gt;
&lt;LI&gt;To calculate the minutes we need to subtract Days and Hours to the Duration and multiply by 60. Create a new calculated field, call it Minutes and insert the formula&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Floor((([emtEjp]-[Days])*24 - [Hours])*60)&lt;/EM&gt;&lt;SPAN&gt;. Then drag and drop the Minutes tag in the details band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="080.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27876i286B76ADB2B46826/image-size/large?v=v2&amp;amp;px=999" role="button" title="080.png" alt="080.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="090.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27877i233649C3263F5C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="090.png" alt="090.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;To add the totals, start by adding the GroupFooter band. Drag and drop the Duration tag and set Group and Sum as summary. This will calculate the total of the duration in numeric format.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="100.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27878i009AB04723ED0F3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="100.png" alt="100.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Run a preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="110.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27879i6D6B634FAF94FBBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="110.png" alt="110.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;To calculate the days of total duration create a new calculated field, call it&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Days&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Floor(Sum([emtEjp]))&lt;/EM&gt;&lt;SPAN&gt;. Then drag and drop the tag into the GroupFooter band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="120.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27881i3083294A049517C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="120.png" alt="120.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Run a preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="130.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27882iB5A8290B5E6402F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="130.png" alt="130.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;To calculate the hours of the total duration, create a new calculated field, call it &lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Hours&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Floor((Sum([emtEjp])-[Sum_of_Case_Duration_Days])*24)&lt;/EM&gt;&lt;SPAN&gt;. Drag and drop the new tag in the GroupFooter.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="140.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27909iAB030E30F66F8D1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="140.png" alt="140.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="150.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27910i18BAB0A5012C3D7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="150.png" alt="150.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;To calculate the minutes of the total duration, create a new calculated field, call it&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Minutes&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Floor(((sum([emtEjp])-[Sum_of_Case_Duration_Days])*24 - [Sum_of_Case_Duration_Hours])*60)&lt;/EM&gt;&lt;SPAN&gt;. Drag and drop the new tag in the GroupFooter band.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="160.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27915iABCC0939A410147D/image-size/large?v=v2&amp;amp;px=999" role="button" title="160.png" alt="160.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="170.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27916i7A636A7375BA6D18/image-size/large?v=v2&amp;amp;px=999" role="button" title="170.png" alt="170.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;We explained how to calculate days, hours and minutes step by step for didactical reasons. It is possible to create a single expression that shows all the results in a single string. Create a new calculated field, call it&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Concat([Sum_of_Case_Duration_Days],' ',[Sum_of_Case_Duration_Hours],':',[Sum_of_Case_Duration_Minutes] )&lt;/EM&gt;&lt;SPAN&gt;. The expression uses the previous calculated fields, you don't need to add them into the template to use them in another formula. Drag and drop the new tag in the GroupFooter band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="180.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27917i1F47C4544CFF060F/image-size/large?v=v2&amp;amp;px=999" role="button" title="180.png" alt="180.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Run a report preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="190.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27918i277357CD07A6208C/image-size/large?v=v2&amp;amp;px=999" role="button" title="190.png" alt="190.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;It is possible to obtain the same result in a single step that includes all the calculations in a more complex formula. Create a new calculated field, call it&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Single_Step&lt;/EM&gt;&lt;SPAN&gt; and insert the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Concat(Floor(Sum([emtEjp])),' ',Floor((Sum([emtEjp])-[Sum_of_Case_Duration_Days])*24),':',Floor(((sum([emtEjp])-[Sum_of_Case_Duration_Days])*24 - [Sum_of_Case_Duration_Hours])*60) )&lt;/EM&gt;&lt;SPAN&gt;. The expression was created by replacing the Days, Hours and Minutes variable names in the previous expression with their detailed calculations. Drag and drop the new tag in the GroupFooter band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="200.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27920i23DB632CEB5E3F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="200.png" alt="200.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="210.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27921i9C1BB8563AFAB2E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="210.png" alt="210.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 09:14:53 GMT</pubDate>
    <dc:creator>Ruggero_Piccoli</dc:creator>
    <dc:date>2022-04-19T09:14:53Z</dc:date>
    <item>
      <title>Summarize Time Columns in a Qlik NPrinting PixelPerfect Reports</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/ta-p/1671318</link>
      <description>&lt;P&gt;In this tutorial, we will use calculated fields to manage Qlik Sense columns with time data in Qlik NPrinting PixelPerfect reports. We will create formulas to extract days, hours and minutes from a duration column then we will calculate the sum and display it in the &lt;EM&gt;dd hh:ss&lt;/EM&gt; format.&lt;/P&gt;
&lt;H4&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Environment:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="Qlik NPrinting" id="qlikNPrinting"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Before we get started:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;To follow this tutorial you need to be familiar with PixelPerfect templates development process. We will not explain the details that are already covered in the official Help Site &lt;A href="https://help.qlik.com/en-US/nprinting/Content/NPrinting/PixelPerfectReports/Intro-PixelPerfect-Reports.htm" target="_blank" rel="noopener"&gt;PixelPerfect reports&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="CommonComponentsQlik Sense"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;stores each date, time, and timestamp found in data as a date serial number as&lt;/SPAN&gt;&amp;nbsp;explained in&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/date-time-interpretation.htm" target="_blank" rel="noopener"&gt;Date and time interpretation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The tutorial uses the Qlik Sense demo app Help Desk Management from the link&amp;nbsp;&amp;nbsp;&lt;A href="https://demos.qlik.com/qliksense/HelpdeskManagement" target="_blank" rel="noopener"&gt;https://demos.qlik.com/qliksense/HelpdeskManagement.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Steps:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create a Qlik NPrinting connection to that app and wait until the cache is generated.&lt;/LI&gt;
&lt;LI&gt;To limit the number of rows used during the report development process, create a new filter. Set the&amp;nbsp;Case Owner field to the value Gerardo E. Ferroni and the&amp;nbsp;Subject field to New Laptop Request.&lt;/LI&gt;
&lt;LI&gt;Create a new PixelPerfect report and call it, for example,&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;PxP Sum Time Format from Sense Tutorial&lt;/EM&gt;&lt;SPAN&gt;, and add the filter.&amp;nbsp; Then open the template in the Qlik NPrinting Designer.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Add the Case Details straight table to the Levels node, create the related Details band and insert the Case Number, Case Owner and Duration columns. Add the GroupHeader and you should have a template like the following:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="020.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27801i3FC174251DF5B9B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="020.png" alt="020.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;If you run a report preview the duration column (last one on the right) will be displayed as a double number, but we want to see the days, hours and minutes. Applying the format string to the column will not work.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="030.png" style="width: 651px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27802i746B6C790779E66B/image-size/large?v=v2&amp;amp;px=999" role="button" title="030.png" alt="030.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;We will use PixelPerfect calculated fields to extract the Days, Hours and Minutes from the details row and show the totals. The integer part of the date and time is the number of days.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Right-click over the table name and select Add Calculated Field. In the Expression property add the formula&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Floor([emtEjp])&lt;/EM&gt;&lt;SPAN&gt;. In the &lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;(Name)&lt;/EM&gt;&lt;SPAN&gt; property insert &lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Days&lt;/EM&gt;&lt;SPAN&gt;. Drag and drop the Days box into the Details band. The result will be similar to:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="040.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27807iF1E336CDE7AA4D6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="040.png" alt="040.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview and you will see the Days number.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="050.png" style="width: 785px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27809iFC2BAB984A9469B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="050.png" alt="050.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;To calculate the hours we will subtract the Days to the duration and multiply the result by 24. Add a new calculated field, call it Hours and insert the expression&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Floor(([emtEjp]-[Days])*24)&lt;/EM&gt;&lt;SPAN&gt;. You can use the name of an existing calculated field into another. We suggest to do this to keep the expressions more readable. Drag and drop the Hours field into the details band. The template will be similar to:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="060.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27811iD0739EACF55699D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="060.png" alt="060.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="070.png" style="width: 886px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27813iCF4BE332ECC400D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="070.png" alt="070.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;You can compare the results with the numbers in Qlik Sense to be sure they are correct. It is not mandatory to drag and drop all the calculated columns into the template. We are doing this for didactical reasons. You could also develop a single, more complex, formula instead of doing all single steps.&lt;/LI&gt;
&lt;LI&gt;To calculate the minutes we need to subtract Days and Hours to the Duration and multiply by 60. Create a new calculated field, call it Minutes and insert the formula&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Floor((([emtEjp]-[Days])*24 - [Hours])*60)&lt;/EM&gt;&lt;SPAN&gt;. Then drag and drop the Minutes tag in the details band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="080.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27876i286B76ADB2B46826/image-size/large?v=v2&amp;amp;px=999" role="button" title="080.png" alt="080.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="090.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27877i233649C3263F5C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="090.png" alt="090.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;To add the totals, start by adding the GroupFooter band. Drag and drop the Duration tag and set Group and Sum as summary. This will calculate the total of the duration in numeric format.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="100.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27878i009AB04723ED0F3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="100.png" alt="100.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Run a preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="110.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27879i6D6B634FAF94FBBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="110.png" alt="110.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;To calculate the days of total duration create a new calculated field, call it&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Days&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Floor(Sum([emtEjp]))&lt;/EM&gt;&lt;SPAN&gt;. Then drag and drop the tag into the GroupFooter band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="120.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27881i3083294A049517C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="120.png" alt="120.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Run a preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="130.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27882iB5A8290B5E6402F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="130.png" alt="130.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;To calculate the hours of the total duration, create a new calculated field, call it &lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Hours&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Floor((Sum([emtEjp])-[Sum_of_Case_Duration_Days])*24)&lt;/EM&gt;&lt;SPAN&gt;. Drag and drop the new tag in the GroupFooter.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="140.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27909iAB030E30F66F8D1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="140.png" alt="140.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="150.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27910i18BAB0A5012C3D7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="150.png" alt="150.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;To calculate the minutes of the total duration, create a new calculated field, call it&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Minutes&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Floor(((sum([emtEjp])-[Sum_of_Case_Duration_Days])*24 - [Sum_of_Case_Duration_Hours])*60)&lt;/EM&gt;&lt;SPAN&gt;. Drag and drop the new tag in the GroupFooter band.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="160.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27915iABCC0939A410147D/image-size/large?v=v2&amp;amp;px=999" role="button" title="160.png" alt="160.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="170.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27916i7A636A7375BA6D18/image-size/large?v=v2&amp;amp;px=999" role="button" title="170.png" alt="170.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;We explained how to calculate days, hours and minutes step by step for didactical reasons. It is possible to create a single expression that shows all the results in a single string. Create a new calculated field, call it&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration&lt;/EM&gt;&lt;SPAN&gt; and add the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Concat([Sum_of_Case_Duration_Days],' ',[Sum_of_Case_Duration_Hours],':',[Sum_of_Case_Duration_Minutes] )&lt;/EM&gt;&lt;SPAN&gt;. The expression uses the previous calculated fields, you don't need to add them into the template to use them in another formula. Drag and drop the new tag in the GroupFooter band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="180.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27917i1F47C4544CFF060F/image-size/large?v=v2&amp;amp;px=999" role="button" title="180.png" alt="180.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;Run a report preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="190.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27918i277357CD07A6208C/image-size/large?v=v2&amp;amp;px=999" role="button" title="190.png" alt="190.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;It is possible to obtain the same result in a single step that includes all the calculations in a more complex formula. Create a new calculated field, call it&amp;nbsp;&lt;EM style="font-family: inherit;"&gt;Sum_of_Case_Duration_Single_Step&lt;/EM&gt;&lt;SPAN&gt; and insert the expression&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="font-family: inherit;"&gt;Concat(Floor(Sum([emtEjp])),' ',Floor((Sum([emtEjp])-[Sum_of_Case_Duration_Days])*24),':',Floor(((sum([emtEjp])-[Sum_of_Case_Duration_Days])*24 - [Sum_of_Case_Duration_Hours])*60) )&lt;/EM&gt;&lt;SPAN&gt;. The expression was created by replacing the Days, Hours and Minutes variable names in the previous expression with their detailed calculations. Drag and drop the new tag in the GroupFooter band.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="200.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27920i23DB632CEB5E3F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="200.png" alt="200.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Run a report preview&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="210.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27921i9C1BB8563AFAB2E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="210.png" alt="210.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 09:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/ta-p/1671318</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2022-04-19T09:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Time Columns in PixelPerfect Reports</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1672328#M6153</link>
      <description>&lt;P&gt;Well done mate...i knew there must be a workaround possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;On the other hand it is a shame we can't rely on built in sing format for time series aggregation.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 22:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1672328#M6153</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-02-04T22:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Time Columns in PixelPerfect Reports</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1672440#M6154</link>
      <description>&lt;P&gt;The faster solution is to jump directly to the final formula and customize it. The advantage is that this solution doesn't need to develop a custom script in C#, JavaScript or what else, so it is feasible to more developers. It is also an example of calculated fields and they can be used in many other situation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1672440#M6154</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2020-02-05T09:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Time Columns in PixelPerfect Reports</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1672584#M6155</link>
      <description>&lt;P&gt;Perfect !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much Ruggero.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1672584#M6155</guid>
      <dc:creator>QSMACHBI</dc:creator>
      <dc:date>2020-02-05T14:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize Time Columns in PixelPerfect Reports</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1687773#M6156</link>
      <description>Thanks for sharing</description>
      <pubDate>Wed, 25 Mar 2020 17:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Summarize-Time-Columns-in-a-Qlik-NPrinting-PixelPerfect-Reports/tac-p/1687773#M6156</guid>
      <dc:creator>BinayKumarSah</dc:creator>
      <dc:date>2020-03-25T17:05:45Z</dc:date>
    </item>
  </channel>
</rss>

