<?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: Calculation inside of a diagramm / chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439310#M564384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and sum(if worked &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 16:20:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-01-21T16:20:15Z</dc:date>
    <item>
      <title>Calculation inside of a diagramm / chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439304#M564378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Table with different states and time linked to this state&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;State&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Duration&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;State_1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;State_2&lt;/TD&gt;&lt;TD&gt;1.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;State_3&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;State_3&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I did was putting the State as dimension and sum(Duration) as formula.&lt;/P&gt;&lt;P&gt;The problem now is , that I have to split the State_3 in 3 other substates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the following: I put the State our of dimentions and added every State as formula &lt;/P&gt;&lt;P&gt;(If(State=State_1;sum(duration);0)&lt;/P&gt;&lt;P&gt;and called the formula State_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatly QlikView is showing me always 0 as the result..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers chesterluck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 13:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439304#M564378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-21T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inside of a diagramm / chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439305#M564379</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;why don't you add another subdimension as State_3_1, State_3_2...&lt;/P&gt;&lt;P&gt;You can then display States 1, 2, 3 as total or see split states if you develop your graph&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 13:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439305#M564379</guid>
      <dc:creator />
      <dc:date>2013-01-21T13:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inside of a diagramm / chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439306#M564380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV uses commas instead of semicolons in if statements.&lt;/P&gt;&lt;P&gt;Also, if you have an expression with if(&amp;lt;test&amp;gt;,sum(&amp;lt;value&amp;gt;)) then the test is carried out across all the rows, not for each value in the field. Try instead sum(if(&amp;lt;test&amp;gt;,&amp;lt;value&amp;gt;)) to do a test at a record by record level.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 13:53:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439306#M564380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-21T13:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inside of a diagramm / chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439307#M564381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Jonathan: I used of course commas in the formula - otherwise it wouls show a syntax error..&lt;/P&gt;&lt;P&gt;@Christion: I can surely do it in the loading process (probably I will), but I thought that such things can also be done in the chart itself...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers chesterluck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 14:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439307#M564381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-21T14:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inside of a diagramm / chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439308#M564382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Jonathan: I used of course commas in the formula - otherwise it wouls show a syntax error..&lt;/P&gt;&lt;P&gt;@Christion: I can surely do it in the loading process (probably I will), but I thought that such things can also be done in the chart itself...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers chesterluck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 14:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439308#M564382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-21T14:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inside of a diagramm / chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439309#M564383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about the second point about the sum(if... vs. if(sum... ordering ? Does that help.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 14:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439309#M564383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-21T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation inside of a diagramm / chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439310#M564384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and sum(if worked &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 16:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-inside-of-a-diagramm-chart/m-p/439310#M564384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-21T16:20:15Z</dc:date>
    </item>
  </channel>
</rss>

