<?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 Set analysis - set KPIMonth to dimension month?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204917#M61626</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a table which is not coupled (since qlikview is getting circular problems when coupling the table) ...&lt;BR /&gt;The table contains KPI's for various checking on various tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;KPI KPIMonth Value&lt;BR /&gt;1 1 23&lt;BR /&gt;1 2 24&lt;BR /&gt;2 1 1.25&lt;BR /&gt;2 2 1.45&lt;BR /&gt;3 1 98&lt;BR /&gt;3 2 98&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I try to get the correct KPI value for comparing (that is the tables purpose) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sum({&amp;lt;&lt;B&gt;KPI&lt;/B&gt; = {3}, &lt;B&gt;KPImonth&lt;/B&gt; = {"=$(Month)"} &amp;gt;}if((networkdays(Serviceorders.OrderDate, SendingDate) ) &amp;lt; &lt;B&gt;value&lt;/B&gt;,1,0))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Month in the sample is the dimension month ... but somehow it seems that this is not working ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Serviceorders.OrderDate and SendingDate and Month are from our ServiceOrders table in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got suggestions how to solve this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jun 2010 13:47:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-06-28T13:47:11Z</dc:date>
    <item>
      <title>Set analysis - set KPIMonth to dimension month??</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204917#M61626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a table which is not coupled (since qlikview is getting circular problems when coupling the table) ...&lt;BR /&gt;The table contains KPI's for various checking on various tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;KPI KPIMonth Value&lt;BR /&gt;1 1 23&lt;BR /&gt;1 2 24&lt;BR /&gt;2 1 1.25&lt;BR /&gt;2 2 1.45&lt;BR /&gt;3 1 98&lt;BR /&gt;3 2 98&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I try to get the correct KPI value for comparing (that is the tables purpose) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;sum({&amp;lt;&lt;B&gt;KPI&lt;/B&gt; = {3}, &lt;B&gt;KPImonth&lt;/B&gt; = {"=$(Month)"} &amp;gt;}if((networkdays(Serviceorders.OrderDate, SendingDate) ) &amp;lt; &lt;B&gt;value&lt;/B&gt;,1,0))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Month in the sample is the dimension month ... but somehow it seems that this is not working ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Serviceorders.OrderDate and SendingDate and Month are from our ServiceOrders table in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got suggestions how to solve this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 13:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204917#M61626</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-28T13:47:11Z</dc:date>
    </item>
    <item>
      <title>Set analysis - set KPIMonth to dimension month??</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204918#M61627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that you should spend a little more time trying to link all the tables in your datacloud and clear the circular reference issue.&lt;/P&gt;&lt;P&gt;This kind of not coupled tables solutions lacks performance in middle to high size QVW and the expressions always becomes too complex.&lt;/P&gt;&lt;P&gt;Why dont you try to create a LinkTable between your data and kpi data?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 15:14:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204918#M61627</guid>
      <dc:creator>fernandotoledo</dc:creator>
      <dc:date>2010-06-28T15:14:04Z</dc:date>
    </item>
    <item>
      <title>Set analysis - set KPIMonth to dimension month??</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204919#M61628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A set in set analysis is only analyzed once for the entire chart, not once for each row of the chart. So unless you select only a single Month, I wouldn't expect set analysis to work. I believe you have to use an if() for multiple rows.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;KPI={3}&amp;gt;} if(KPIMonth=Month...))&lt;/P&gt;&lt;P&gt;Performace could be pretty bad if you have a lot of data. But I'm guessing you only have KPIs for whole months, not for dates or timestamps, and linking Month to KPIMonth probably won't be too bad. I wouldn't do it at the date level, though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jun 2010 23:19:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204919#M61628</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-28T23:19:27Z</dc:date>
    </item>
    <item>
      <title>Set analysis - set KPIMonth to dimension month??</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204920#M61629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I believe you can distribute your KPI among the months selected, using the concat function within a variable.&lt;/P&gt;&lt;P&gt;Declare a variable named vMonthYear and set the content to something similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=concat(distinct chr(39) &amp;amp; MonthYear &amp;amp; chr(39),',')&lt;/P&gt;&lt;P&gt;Then in your chart add the KPIMonthYear dimmension. Then use set analyis to limit the KPIMonthYears to the ones available or selected by the users:&lt;/P&gt;&lt;P&gt;Exp:&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;.... KPIMonthYear = {$(=vMonthYear)}&amp;gt;} fields...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should do the trick.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 00:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-set-KPIMonth-to-dimension-month/m-p/204920#M61629</guid>
      <dc:creator />
      <dc:date>2010-06-29T00:38:22Z</dc:date>
    </item>
  </channel>
</rss>

