<?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 Is this possible? Calc Dimension / Expressions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-this-possible-Calc-Dimension-Expressions/m-p/1431873#M612758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Qlik community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wanted to reach out and see if this data layout would be possible in a pivot or straight table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183998" alt="qlikviewTable.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183998_qlikviewTable.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only month, and full-year are available as raw-data.&amp;nbsp; A simplistic version of what I need is attached, but I can only get the first column (month) to function properly.&amp;nbsp; This version is not my full qlikview, due to sensitivity of data, I cannot post that one.&amp;nbsp; Nevertheless, I can provide the data model.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183999" alt="export.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183999_export.png" style="height: 367px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The biggest issue I am running into is that since a lot of my KPI's are %-based, they need to be computed on the fly to avoid avg(%) which isn't correct, since it is not a weighted average.&amp;nbsp; For instance, my sixth KPI is this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15112553508551071 jive_text_macro" jivemacro_uid="_15112553508551071"&gt;
&lt;P&gt;SUM(KPI_DWHOPI_BIZ_HOURS_ADJ_DEALS_REVIEWED) /&lt;/P&gt;
&lt;P&gt;(sum(KPI_DWHOPI_DEALS_APPROVED_W_COND) + sum(KPI_DWHOPI_DEALS_APPROVED_WO_COND) + sum(KPI_DWHOPI_DEALS_REJECTED))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I should state, a requirement is that YTD is based on the month's selection; so you could for instance click Feb, and it does a YTD of Jan-Feb; not YTD based on the current date (my data is monthly based, not daily).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 09:11:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-21T09:11:55Z</dc:date>
    <item>
      <title>Is this possible? Calc Dimension / Expressions</title>
      <link>https://community.qlik.com/t5/QlikView/Is-this-possible-Calc-Dimension-Expressions/m-p/1431873#M612758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Qlik community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wanted to reach out and see if this data layout would be possible in a pivot or straight table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183998" alt="qlikviewTable.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/183998_qlikviewTable.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only month, and full-year are available as raw-data.&amp;nbsp; A simplistic version of what I need is attached, but I can only get the first column (month) to function properly.&amp;nbsp; This version is not my full qlikview, due to sensitivity of data, I cannot post that one.&amp;nbsp; Nevertheless, I can provide the data model.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="183999" alt="export.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/183999_export.png" style="height: 367px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The biggest issue I am running into is that since a lot of my KPI's are %-based, they need to be computed on the fly to avoid avg(%) which isn't correct, since it is not a weighted average.&amp;nbsp; For instance, my sixth KPI is this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15112553508551071 jive_text_macro" jivemacro_uid="_15112553508551071"&gt;
&lt;P&gt;SUM(KPI_DWHOPI_BIZ_HOURS_ADJ_DEALS_REVIEWED) /&lt;/P&gt;
&lt;P&gt;(sum(KPI_DWHOPI_DEALS_APPROVED_W_COND) + sum(KPI_DWHOPI_DEALS_APPROVED_WO_COND) + sum(KPI_DWHOPI_DEALS_REJECTED))&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I should state, a requirement is that YTD is based on the month's selection; so you could for instance click Feb, and it does a YTD of Jan-Feb; not YTD based on the current date (my data is monthly based, not daily).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Mikael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 09:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-this-possible-Calc-Dimension-Expressions/m-p/1431873#M612758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-21T09:11:55Z</dc:date>
    </item>
  </channel>
</rss>

