<?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 QlikView : Issue with set analysis in simple table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QlikView-Issue-with-set-analysis-in-simple-table/m-p/1006315#M341772</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue in a simple table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have buildings and for each one i want to deduce energy class with a reference file.&lt;/P&gt;&lt;P&gt;Here's my model :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="model.PNG" class="jive-image image-1" height="282" src="https://community.qlik.com/legacyfs/online/108875_model.PNG" style="height: 282.11px; width: 209px;" width="209" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my calculation : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MinString({$ &amp;lt;CLASS_MIN_NRJ_METROP={"=Sum((FACT_C_CONSO_BRANCHE*COEFF_RATIO_EP_EF)/OCC_SUBL)&amp;gt;=CLASS_MIN_NRJ_METROP"}&lt;/P&gt;&lt;P&gt;,CLASS_MAX_NRJ_METROP={"=Sum((FACT_C_CONSO_BRANCHE*COEFF_RATIO_EP_EF)/OCC_SUBL)&amp;lt;CLASS_MAX_NRJ_METROP"}&amp;gt;&lt;/P&gt;&lt;P&gt;} CLASS_CLASSE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with this calculation, i don't have good results when i have several buildings. If i select just one building, then the result is OK.&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 292px; height: 53px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Building&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Result i want to have&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Result i have&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and when i choose juste one :&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" style="border: 1px solid rgb(0, 0, 0); width: 290px; height: 18px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-size: 13.3333px; text-align: center; background-color: #6690bc;"&gt;Building&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;Result i want to have&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-size: 13.3333px; text-align: center; background-color: #6690bc;"&gt;Result i have&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue is with the set analysis but i don't know why.&lt;/P&gt;&lt;P&gt;Can someone help me ? Sorry for my english, i hope i'm understandable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Dec 2015 15:13:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-13T15:13:13Z</dc:date>
    <item>
      <title>QlikView : Issue with set analysis in simple table</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Issue-with-set-analysis-in-simple-table/m-p/1006315#M341772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue in a simple table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have buildings and for each one i want to deduce energy class with a reference file.&lt;/P&gt;&lt;P&gt;Here's my model :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="model.PNG" class="jive-image image-1" height="282" src="https://community.qlik.com/legacyfs/online/108875_model.PNG" style="height: 282.11px; width: 209px;" width="209" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my calculation : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MinString({$ &amp;lt;CLASS_MIN_NRJ_METROP={"=Sum((FACT_C_CONSO_BRANCHE*COEFF_RATIO_EP_EF)/OCC_SUBL)&amp;gt;=CLASS_MIN_NRJ_METROP"}&lt;/P&gt;&lt;P&gt;,CLASS_MAX_NRJ_METROP={"=Sum((FACT_C_CONSO_BRANCHE*COEFF_RATIO_EP_EF)/OCC_SUBL)&amp;lt;CLASS_MAX_NRJ_METROP"}&amp;gt;&lt;/P&gt;&lt;P&gt;} CLASS_CLASSE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with this calculation, i don't have good results when i have several buildings. If i select just one building, then the result is OK.&lt;/P&gt;&lt;P&gt;Example : &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="124" style="border: 1px solid rgb(0, 0, 0); width: 292px; height: 53px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Building&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Result i want to have&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Result i have&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;E&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;G&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;and when i choose juste one :&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="49" style="border: 1px solid rgb(0, 0, 0); width: 290px; height: 18px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-size: 13.3333px; text-align: center; background-color: #6690bc;"&gt;Building&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;Result i want to have&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;SPAN style="color: #ffffff; font-size: 13.3333px; text-align: center; background-color: #6690bc;"&gt;Result i have&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the issue is with the set analysis but i don't know why.&lt;/P&gt;&lt;P&gt;Can someone help me ? Sorry for my english, i hope i'm understandable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 15:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Issue-with-set-analysis-in-simple-table/m-p/1006315#M341772</guid>
      <dc:creator />
      <dc:date>2015-12-13T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: QlikView : Issue with set analysis in simple table</title>
      <link>https://community.qlik.com/t5/QlikView/QlikView-Issue-with-set-analysis-in-simple-table/m-p/1006316#M341773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your tables TRE_CLASS is a data island. It's not connected to any other table in your data model. That means you're working with a cartesian product. For each CLASSE_something value all the values in the TFA_FACTU... table are possible values. That's why set analysis does not work. The set is calculated at the chart level, not the row level. You will have to use if-statements if you want to keep your current data model. Perhaps you should calculate the sums per building in the script and do an intervalmatch with the TRE_CLASS table to match the sum with the interval and so with the CLASS_CLASSE value for that interval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Dec 2015 17:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QlikView-Issue-with-set-analysis-in-simple-table/m-p/1006316#M341773</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-13T17:33:24Z</dc:date>
    </item>
  </channel>
</rss>

