<?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 Calcul expression with a dimension Data Island in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536650#M552073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a data island &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;that I use as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I would like to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;relate&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the value of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dimension&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the calculation of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;DateAbo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;PeriodeFacturation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Expression&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="atn hps"&gt;sum (&lt;/SPAN&gt;&lt;SPAN class="atn"&gt;{&lt;/SPAN&gt;&amp;lt;DateFact={"$(=date(max(DateAbo)+7*&lt;SPAN style="color: #ff0000;"&gt;PeriodeFacturation&lt;/SPAN&gt;))"}&amp;gt;} &lt;SPAN class="hps"&gt;Nb)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;This&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression works&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if I select&lt;/SPAN&gt; a PeriodFacturation. &lt;SPAN class="hps"&gt;How can it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;without&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selection&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 14:35:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-28T14:35:05Z</dc:date>
    <item>
      <title>Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536650#M552073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I created&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a data island &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;that I use as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;I would like to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;relate&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the value of the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dimension&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the calculation of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;my expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;dimension:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;DateAbo&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;PeriodeFacturation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Expression&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="atn hps"&gt;sum (&lt;/SPAN&gt;&lt;SPAN class="atn"&gt;{&lt;/SPAN&gt;&amp;lt;DateFact={"$(=date(max(DateAbo)+7*&lt;SPAN style="color: #ff0000;"&gt;PeriodeFacturation&lt;/SPAN&gt;))"}&amp;gt;} &lt;SPAN class="hps"&gt;Nb)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;This&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expression works&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if I select&lt;/SPAN&gt; a PeriodFacturation. &lt;SPAN class="hps"&gt;How can it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;work&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;without&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selection&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 14:35:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536650#M552073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-28T14:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536651#M552074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this: sum({&amp;lt;DateFact={"$(=date(max(DateAbo)+7*min(PeriodeFacturation)))"} &amp;gt;} Nb)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536651#M552074</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-10-28T15:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536652#M552075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; working with data island, which value of &lt;SPAN class="hps"&gt;PeriodeFacturation should be taken to calculate the expression?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Is not possible to link the tables ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 15:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536652#M552075</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-10-28T15:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536653#M552076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;This works&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;but it&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;selects&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;me&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that the period&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;0&lt;/SPAN&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 08:40:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536653#M552076</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-29T08:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536654#M552077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;It is possible but&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the calculation takes&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;several hours&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 08:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536654#M552077</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-29T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536655#M552078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Canon,&lt;/P&gt;&lt;P&gt;I would think this only work if you have a variable that would return a default DateFact? Say you have variables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMaxPerFact =&lt;/STRONG&gt; &lt;STRONG&gt;7* max(PeriodeFacturation) ;&lt;/STRONG&gt; and&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vMaxDateAbo&amp;nbsp; =max(DateAbo)&lt;/STRONG&gt;; you will then have a variable for your default DateFact:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;vDefaultDateFact =mid(date(vMaxDateAbo+vMaxPerFac),1,10);&lt;/STRONG&gt; you will notice that your default DateFact (without any Selection made) is ' &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;05/03/2013&lt;/STRONG&gt;&lt;/SPAN&gt; ' which would not return any Nb value because it does not exist in the FACT table. And so you can have an expression such as: &lt;STRONG&gt;sum(if(DateFact=vDefaultDateFact,Nb))&lt;/STRONG&gt; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check on attached?&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536655#M552078</guid>
      <dc:creator />
      <dc:date>2013-10-29T10:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536656#M552079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Furthermore, the expression &lt;SPAN class="atn hps" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum (&lt;/SPAN&gt;&lt;SPAN class="atn" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;lt;DateFact={"$(=date(max(DateAbo)+7*&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;PeriodeFacturation&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;))"}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN class="hps" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Nb)&lt;/SPAN&gt; can not return any value withouth a selection on &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PeriodeFacturation&lt;/SPAN&gt; because the field &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PeriodeFacturation&lt;/SPAN&gt; returns multiple values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536656#M552079</guid>
      <dc:creator />
      <dc:date>2013-10-29T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536657#M552080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Quentin for your intervention but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, in my expression, &lt;SPAN style="color: #ff0000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PeriodeFacturation&lt;/SPAN&gt; return multiple values so &lt;SPAN class="hps"&gt;I'm looking&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;how to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;retrieve&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the value&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;that there &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;in my&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;dimension. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 15:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536657#M552080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-29T15:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536658#M552081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I think you should use a sum expression with a if statement instead of the set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fist of all create the variable &lt;STRONG&gt;vMaxDateAbo&lt;/STRONG&gt; &lt;STRONG&gt;= date(max(DateAbo)) .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Then use the following expression in your straight table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(if (DateFact = (vMaxDateAbo + 7*PeriodeFacturation) , Nb))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find attached.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 17:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536658#M552081</guid>
      <dc:creator />
      <dc:date>2013-10-29T17:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calcul expression with a dimension Data Island</title>
      <link>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536659#M552082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;Yes&lt;/SPAN&gt;! &lt;SPAN class="hps"&gt;Thank you&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;for your help. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 08:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calcul-expression-with-a-dimension-Data-Island/m-p/536659#M552082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-30T08:28:08Z</dc:date>
    </item>
  </channel>
</rss>

