<?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 Re: Calculate in the same chart two different expression if the value of the dimension change in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959129#M526473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u so much &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌!! that's so much better.&lt;/P&gt;&lt;P&gt;I need another time your help... I've introduced an if statement in my qvw here attached and another dimension "Codice Articolo" cause i want to know the sum of value of "Stock/1000" per month stacked per "KO" case and "OK" case.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109554_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my issue clear enough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2015 09:54:14 GMT</pubDate>
    <dc:creator>caccio88</dc:creator>
    <dc:date>2015-12-21T09:54:14Z</dc:date>
    <item>
      <title>Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959122#M526466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I woul like to use in the same chart for the first 4 months an expression and for the lat 3 months another one.&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109480_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Is my issue clear enough ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Her attached my qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank u all.&lt;/P&gt;&lt;P&gt;Filiberto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2015 15:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959122#M526466</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2015-12-19T15:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959123#M526467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just need to add a conditional statement to check your dimension value / line number, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Rowno()&amp;lt;=4,(sum(CMV_M)*30)/1000,(sum(CMV_W)*7)/1000)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Data &amp;lt;= '01/06/2015',(sum(CMV_M)*30)/1000,(sum(CMV_W)*7)/1000)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2015 16:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959123#M526467</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-19T16:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959124#M526468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌! it's a great contribute for me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one question: what if I should add data for a new month (like 01/10/2015)? it seems that the expression is not working anymore, isn't it?&lt;/P&gt;&lt;P&gt;I try to be a bit clearer, what i would like to have is that the last 3 months has been calculeted every time with &lt;STRONG&gt;sum(CMV_W)*7)/1000 &lt;/STRONG&gt;and the months before with &lt;STRONG&gt;sum(CMV_M)*30)/1000.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2015 18:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959124#M526468</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2015-12-19T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959125#M526469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of ways to check your dimension values, e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Rowno()&amp;lt;=NoOfRows()-3,(sum(CMV_M)*30)/1000,(sum(CMV_W)*7)/1000)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2015 18:49:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959125#M526469</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-19T18:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959126#M526470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wonderful!&lt;/P&gt;&lt;P&gt;So grateful! &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2015 19:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959126#M526470</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2015-12-19T19:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959127#M526471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌, i'm thinking if it's possible to define the "if statement" based on the DateMonth and not on the row number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like: &lt;STRONG&gt;if(Data&amp;lt;(max(Data)-3,(sum(CMV_M)*30)/1000,(sum(CMV_W)*7)/1000));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;where "Data" is like the Month date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because if I add another dimension like "Codice Articolo" the formula will not work anymore, isn't it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 08:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959127#M526471</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2015-12-21T08:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959128#M526472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Should be possible, but you need something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Data &amp;lt;= AddMonths(Max(TOTAL Data),-3), ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you are using a sequential Month number field, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(MonthNo &amp;lt;= Max(TOTAL MonthNo)-3, ...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 09:23:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959128#M526472</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-21T09:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate in the same chart two different expression if the value of the dimension change</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959129#M526473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u so much &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌!! that's so much better.&lt;/P&gt;&lt;P&gt;I need another time your help... I've introduced an if statement in my qvw here attached and another dimension "Codice Articolo" cause i want to know the sum of value of "Stock/1000" per month stacked per "KO" case and "OK" case.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109554_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is my issue clear enough?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 09:54:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-in-the-same-chart-two-different-expression-if-the/m-p/959129#M526473</guid>
      <dc:creator>caccio88</dc:creator>
      <dc:date>2015-12-21T09:54:14Z</dc:date>
    </item>
  </channel>
</rss>

