<?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 Complient Objectives % calculation over various period and location dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complient-Objectives-calculation-over-various-period-and/m-p/1670494#M455980</link>
    <description>&lt;P&gt;Greetings very clever Qlik Community,&lt;/P&gt;&lt;P&gt;I am producing a number of visualisations, Straight Table and Combo Chart.&amp;nbsp; Here is the scenario, which has evaded me so far.&lt;/P&gt;&lt;P&gt;Org has 10000+ people and each month they report on the number of people who are complient and the trend from the previous monthly reports.&lt;/P&gt;&lt;P&gt;To be complient each person must have 4 valid objectives&amp;nbsp; (Objective&amp;gt;3)&lt;/P&gt;&lt;P&gt;To be valid the objective must be in the valid year ([Valid Year] =1)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Objective Status must be either Active, Completed or On hold ([Objective Status] =1)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to be able to calculate the Complient % at all levels. Org, Region, Area, Team and Individual.&lt;/P&gt;&lt;P&gt;Has anyone clever got a magic expression or script to achieve this?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2020 14:03:11 GMT</pubDate>
    <dc:creator>CHansford</dc:creator>
    <dc:date>2020-01-29T14:03:11Z</dc:date>
    <item>
      <title>Complient Objectives % calculation over various period and location dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Complient-Objectives-calculation-over-various-period-and/m-p/1670494#M455980</link>
      <description>&lt;P&gt;Greetings very clever Qlik Community,&lt;/P&gt;&lt;P&gt;I am producing a number of visualisations, Straight Table and Combo Chart.&amp;nbsp; Here is the scenario, which has evaded me so far.&lt;/P&gt;&lt;P&gt;Org has 10000+ people and each month they report on the number of people who are complient and the trend from the previous monthly reports.&lt;/P&gt;&lt;P&gt;To be complient each person must have 4 valid objectives&amp;nbsp; (Objective&amp;gt;3)&lt;/P&gt;&lt;P&gt;To be valid the objective must be in the valid year ([Valid Year] =1)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Objective Status must be either Active, Completed or On hold ([Objective Status] =1)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to be able to calculate the Complient % at all levels. Org, Region, Area, Team and Individual.&lt;/P&gt;&lt;P&gt;Has anyone clever got a magic expression or script to achieve this?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 14:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complient-Objectives-calculation-over-various-period-and/m-p/1670494#M455980</guid>
      <dc:creator>CHansford</dc:creator>
      <dc:date>2020-01-29T14:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Complient Objectives % calculation over various period and location dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Complient-Objectives-calculation-over-various-period-and/m-p/1671073#M455981</link>
      <description>&lt;P&gt;Once an expression becomes complicated I would highly recommend to use the script as complicated expressions have negative effect on the front end performance. So, we need some scripting.&lt;/P&gt;&lt;P&gt;You state that you need the measure Complient (%) on many different dimensions. The dimension Individuals is of the most detailed level, as Teams, Area, Department, Region etc. all include Individuals. Thus, we need to create a flag if an Individual is Complient and add this field to the table containing the Individual information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no information about your data model / tables, but the script will look something like this:&lt;/P&gt;&lt;P&gt;Individuals_ComplientCount_map:&lt;BR /&gt;Mapping Load&lt;/P&gt;&lt;P&gt;%Individual_Key&lt;/P&gt;&lt;P&gt;count(Objective) as ObjectiveCount&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Where [ValidYear] = 1 and [Objective Status] = 1&lt;BR /&gt;Group By %Individual_Key;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Individuals:&lt;/P&gt;&lt;P&gt;Load *,&lt;BR /&gt;If(ApplyMap(‘&lt;SPAN&gt;Individuals_ComplientCount_map’,%Individual_Key,0) &amp;gt; 3, ‘1’, ‘0’) as Individual_Complient_Flag&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Resident IndividualsExtract;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, now you know if an individual is complient. Thus, in the front end you can add a simple expression that calculates the Complient (%) for every dimension: sum(Individual_Complient_Flag) / Count(distinct %Individual_Key).&lt;/P&gt;&lt;P&gt;I hope this gave you some inspiration how to solve this.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 21:14:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complient-Objectives-calculation-over-various-period-and/m-p/1671073#M455981</guid>
      <dc:creator>TimvB</dc:creator>
      <dc:date>2020-01-30T21:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Complient Objectives % calculation over various period and location dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Complient-Objectives-calculation-over-various-period-and/m-p/1671076#M455982</link>
      <description>TimvanBenthem ,&lt;BR /&gt;&lt;BR /&gt;Thanks for the alternative to what I've achieved in the meantime, yours may&lt;BR /&gt;well be a better solution and less disruptive to the front end.&lt;BR /&gt;&lt;BR /&gt;I'll give it a whirl and let you know of the outcome.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Thu, 30 Jan 2020 21:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complient-Objectives-calculation-over-various-period-and/m-p/1671076#M455982</guid>
      <dc:creator>CHansford</dc:creator>
      <dc:date>2020-01-30T21:33:16Z</dc:date>
    </item>
  </channel>
</rss>

