<?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 Calculate percentage complete in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20472#M1387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I have a report with each department (med affairs, clinical development, etc) and their employee training. The report has the training due date and the training completion date. I did an IF statement to populate ‘Compliant’ if they completed the training prior to the due date and ‘Non-Compliant’ for after due date.&amp;nbsp; I need to show the overall compliant/non-compliant percentage for each department. I did it in Excel and just did a pivot table that gave me the totals for each department and then manually calculated the %. Is there a way to set this up in Qlik so it will be easy each month? An example is below - I would like to present the bar chart below using Qlik Sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199245_Capture.JPG" style="height: 265px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2018 14:38:44 GMT</pubDate>
    <dc:creator>davekski</dc:creator>
    <dc:date>2018-04-11T14:38:44Z</dc:date>
    <item>
      <title>Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20472#M1387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I have a report with each department (med affairs, clinical development, etc) and their employee training. The report has the training due date and the training completion date. I did an IF statement to populate ‘Compliant’ if they completed the training prior to the due date and ‘Non-Compliant’ for after due date.&amp;nbsp; I need to show the overall compliant/non-compliant percentage for each department. I did it in Excel and just did a pivot table that gave me the totals for each department and then manually calculated the %. Is there a way to set this up in Qlik so it will be easy each month? An example is below - I would like to present the bar chart below using Qlik Sense.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199245_Capture.JPG" style="height: 265px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20472#M1387</guid>
      <dc:creator>davekski</dc:creator>
      <dc:date>2018-04-11T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20473#M1388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone?.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 13:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20473#M1388</guid>
      <dc:creator>davekski</dc:creator>
      <dc:date>2018-04-12T13:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20474#M1389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be like this i attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 14:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20474#M1389</guid>
      <dc:creator>mgomezlor</dc:creator>
      <dc:date>2018-04-12T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20475#M1390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to do this would probably be to create a Flag in the load script, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trainee,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DueDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CompletionDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(DueDate &amp;gt;= CompletionDate,1,0) AS CompliantFlag,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF(DueDate &amp;gt;= CompletionDate,0,1) AS NonCompliantFlag&lt;/P&gt;&lt;P&gt;FROM (source connection string);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the front end, you can use Sum(CompliantFlag) and Sum(NonCompliantFlag). So to get the %Compliant you'd use the formula Sum(CompliantFlag)/(Sum(CompliantFlag)+Sum(NonCompliantFlag)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 14:57:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20475#M1390</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-12T14:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20476#M1391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is how I have my current Load:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Department,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Supervisor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Trainee,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Trainee Status",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Job Code",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Course,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Launch Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Due Date",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Training_Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Training Completion",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF("Training Completion"&amp;gt;"Due Date", 'NonCompliant','Compliant') as Compliant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get a new field that shows NonCompliant or Compliant for each person. I see that your way is similar but a little different. With your way, would I be able to do a stacked bar chart showing the %compliant and %noncompliant for each department? Right now, I have a pivot table set up in Qlik that gives me the count of compliant and count of noncompliant for each department and I have to export the pivot table so that I can use it to generate a bar chart in excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 15:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20476#M1391</guid>
      <dc:creator>davekski</dc:creator>
      <dc:date>2018-04-12T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20477#M1392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you would simply create a bar chart and use the following Dimension and Measures:&lt;/P&gt;&lt;P&gt;Dimension: Department&lt;/P&gt;&lt;P&gt;Measure 1: Sum(CompliantFlag)/(Sum(CompliantFlag)+Sum(NonCompliantFlag))&lt;/P&gt;&lt;P&gt;Measure 2: Sum(NonCompliantFlag)/(Sum(CompliantFlag)+Sum(NonCompliantFlag))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also create a bar chart using your current load script, but you will need to use Set Analysis: &lt;/P&gt;&lt;P&gt;Dimension: Department&lt;/P&gt;&lt;P&gt;Measure 1: Count({&amp;lt;Compliant={'Compliant'}&amp;gt;}Compliant)/Count(Compliant)&lt;/P&gt;&lt;P&gt;Measure 2: Count({&amp;lt;Compliant={'Non-Compliant'}&amp;gt;}Compliant)/Count(Compliant)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;You can read more about set analysis here: &lt;A href="https://help.qlik.com/en-US/sense/February2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" title="https://help.qlik.com/en-US/sense/February2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expressions.htm"&gt;https://help.qlik.com/en-US/sense/February2018/Subsystems/Hub/Content/ChartFunctions/SetAnalysis/set-analysis-expression…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both methods will work, but if you're not too comfortable with set analysis, I would suggest the first option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 15:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20477#M1392</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-12T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20478#M1393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I needed. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 16:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20478#M1393</guid>
      <dc:creator>davekski</dc:creator>
      <dc:date>2018-04-12T16:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20479#M1394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 16:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20479#M1394</guid>
      <dc:creator>davekski</dc:creator>
      <dc:date>2018-04-12T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20480#M1395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - check this out.&lt;/P&gt;&lt;P&gt;\&lt;/P&gt;&lt;P&gt;output :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/199465_1.PNG" style="height: 421px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather prefer sarina wong's approach using flags as it improves the overall performance of the app when you are dealing with millions of records.&lt;/P&gt;&lt;P&gt;As you have mentioned your approach, i have written the script and expression as per your mentioned approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 16:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20480#M1395</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2018-04-12T16:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate percentage complete</title>
      <link>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20481#M1396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 16:13:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Calculate-percentage-complete/m-p/20481#M1396</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-04-12T16:13:31Z</dc:date>
    </item>
  </channel>
</rss>

