<?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 Problem with calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273528#M1183705</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a graph with following dimensions :&lt;/P&gt;&lt;P&gt;IMSI and Timers&lt;/P&gt;&lt;P&gt;and 1 expression named percentile :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(RowNo(TOTAL)&amp;lt;IMSI_decile1,10,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile1 and RowNo(TOTAL)&amp;lt;IMSI_decile2,20,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile2 and RowNo(TOTAL)&amp;lt;IMSI_decile3,30,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile3 and RowNo(TOTAL)&amp;lt;IMSI_decile4,40,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile4 and RowNo(TOTAL)&amp;lt;IMSI_decile5,50,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile5 and RowNo(TOTAL)&amp;lt;IMSI_decile6,60,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile6 and RowNo(TOTAL)&amp;lt;IMSI_decile7,70,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile7 and RowNo(TOTAL)&amp;lt;IMSI_decile8,80,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile8 and RowNo(TOTAL)&amp;lt;IMSI_decile9,90,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile9 and RowNo(TOTAL)&amp;lt;IMSI_decile10,100)&lt;/P&gt;&lt;P&gt;)))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable IMSI_decile* are defined as follows :&lt;/P&gt;&lt;P&gt;IMSI_decile1=ceil(count(timers)/10)&lt;/P&gt;&lt;P&gt;IMSI_decile2=ceil(count(timers)/10*2)&lt;/P&gt;&lt;P&gt;IMSI_decile3=ceil(count(timers)/10*3)&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to build another graph, with basically the same datas. I want to use the expression named "percentile" in previous graph as a dimension, and the expressions would be the average of the timers per percentile.&lt;/P&gt;&lt;P&gt;But when I define percentile as a dimension, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyone have an idea ? I'm quite new to QlikView and I don't really know how to solve this problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a solution would be to create a graph based on the datas calculated with another graph (using some kind of references...), but is it possible to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cyrille&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 13:51:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-25T13:51:18Z</dc:date>
    <item>
      <title>Problem with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273528#M1183705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a graph with following dimensions :&lt;/P&gt;&lt;P&gt;IMSI and Timers&lt;/P&gt;&lt;P&gt;and 1 expression named percentile :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(RowNo(TOTAL)&amp;lt;IMSI_decile1,10,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile1 and RowNo(TOTAL)&amp;lt;IMSI_decile2,20,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile2 and RowNo(TOTAL)&amp;lt;IMSI_decile3,30,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile3 and RowNo(TOTAL)&amp;lt;IMSI_decile4,40,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile4 and RowNo(TOTAL)&amp;lt;IMSI_decile5,50,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile5 and RowNo(TOTAL)&amp;lt;IMSI_decile6,60,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile6 and RowNo(TOTAL)&amp;lt;IMSI_decile7,70,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile7 and RowNo(TOTAL)&amp;lt;IMSI_decile8,80,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile8 and RowNo(TOTAL)&amp;lt;IMSI_decile9,90,&lt;/P&gt;&lt;P&gt;if(RowNo(TOTAL)&amp;gt;=IMSI_decile9 and RowNo(TOTAL)&amp;lt;IMSI_decile10,100)&lt;/P&gt;&lt;P&gt;)))))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable IMSI_decile* are defined as follows :&lt;/P&gt;&lt;P&gt;IMSI_decile1=ceil(count(timers)/10)&lt;/P&gt;&lt;P&gt;IMSI_decile2=ceil(count(timers)/10*2)&lt;/P&gt;&lt;P&gt;IMSI_decile3=ceil(count(timers)/10*3)&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to build another graph, with basically the same datas. I want to use the expression named "percentile" in previous graph as a dimension, and the expressions would be the average of the timers per percentile.&lt;/P&gt;&lt;P&gt;But when I define percentile as a dimension, it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would anyone have an idea ? I'm quite new to QlikView and I don't really know how to solve this problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe a solution would be to create a graph based on the datas calculated with another graph (using some kind of references...), but is it possible to do that ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cyrille&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 13:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273528#M1183705</guid>
      <dc:creator />
      <dc:date>2011-10-25T13:51:18Z</dc:date>
    </item>
    <item>
      <title>Problem with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273529#M1183706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 09:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273529#M1183706</guid>
      <dc:creator />
      <dc:date>2011-10-27T09:03:10Z</dc:date>
    </item>
    <item>
      <title>Problem with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273530#M1183707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that calculated dimensions can cause unexpected results. I'm sure I have read before that they should be avoided, although the latest releases may have resolved that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is preferable to create calculated fields (such as your field 'percentile') in the load script, if this is possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not think you can refer to expressions from one object in another - if that is what your'e suggesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 10:25:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273530#M1183707</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2011-10-27T10:25:09Z</dc:date>
    </item>
    <item>
      <title>Problem with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273531#M1183708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I think I can not create calculated fields in the load script, because then these fields would not change dynamically depending on what is currently selected. Maybe I am wrong ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 12:08:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273531#M1183708</guid>
      <dc:creator />
      <dc:date>2011-10-27T12:08:24Z</dc:date>
    </item>
    <item>
      <title>Problem with calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273532#M1183709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have understood your application, you can calculate your percentile in the script.&lt;/P&gt;&lt;P&gt;When you use it in your chart graph, the calculation will already have been done and will be subject to any filtering that you select.&lt;/P&gt;&lt;P&gt;It might be worth trying a test.&lt;/P&gt;&lt;P&gt;But perhaps I haven't understood ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 13:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-calculated-dimension/m-p/273532#M1183709</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2011-10-27T13:21:49Z</dc:date>
    </item>
  </channel>
</rss>

