<?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 Calculation Condition for a chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366077#M1173509</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;A Calculation Condition is used to determine whether or not a chart is to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your question correctly, you want to always display the chart but only total charges and payments if the Account Status = Billed.&amp;nbsp; In that case you want to add a condition to your expression something like:&lt;/P&gt;&lt;P&gt;Sum(if(Acct_Status = 'Billed',Charges,null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 16:51:14 GMT</pubDate>
    <dc:creator>john_duffy</dc:creator>
    <dc:date>2012-05-23T16:51:14Z</dc:date>
    <item>
      <title>Calculation Condition for a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366076#M1173508</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 have a bar chart with three expressions; total charges, total payments and total account balance. My dimension is country name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to add a calculation condition to a chart that says only pull in charges and payments (already in chart) if the Hospital Account Status = Billed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I add a Calculation Condition on the general tab of the chart? If so, should it read - If(Hospital Account Status="Billed").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:35:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366076#M1173508</guid>
      <dc:creator />
      <dc:date>2012-05-23T16:35:10Z</dc:date>
    </item>
    <item>
      <title>Calculation Condition for a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366077#M1173509</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;A Calculation Condition is used to determine whether or not a chart is to be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand your question correctly, you want to always display the chart but only total charges and payments if the Account Status = Billed.&amp;nbsp; In that case you want to add a condition to your expression something like:&lt;/P&gt;&lt;P&gt;Sum(if(Acct_Status = 'Billed',Charges,null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366077#M1173509</guid>
      <dc:creator>john_duffy</dc:creator>
      <dc:date>2012-05-23T16:51:14Z</dc:date>
    </item>
    <item>
      <title>Calculation Condition for a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366078#M1173510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The calculation condition will affect the complete chart, calculate yes/no. &lt;/P&gt;&lt;P&gt;If you want that, &lt;/P&gt;&lt;P&gt;i&lt;EM&gt;f([Hospital Account Status] = 'Billed',1,0)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could do what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to limit the two expressions to a subset of the data only, depending on Hospital account status?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this, of your expression for charges is something like&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(Charges)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then change the expression to&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum({&amp;lt;[Hospital Account Status]= {Billed}&amp;gt;} Charges)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and accordingly for payments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a set analysis expression, you could also try&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum(if([Hospital Account Status]= 'Billed', Charges))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 16:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366078#M1173510</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-05-23T16:57:29Z</dc:date>
    </item>
    <item>
      <title>Calculation Condition for a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366079#M1173511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;If I use a conditional expression in a chart, my expression should work only when I select it in list box?&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Do you know how to use set analysis or If condtional for all expression?&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;For example:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;My main expression:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Count(B)*count(C)-count(D)*count(F)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;It should be calculated only for A=aaa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;The result shold be the same as I use:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Count({&amp;lt;A={'aaa'}&amp;gt;}B)*count({&amp;lt;A={'aaa'}&amp;gt;}C)-count({&amp;lt;A={'aaa'}&amp;gt;}D)*count({&amp;lt;A={'aaa'}&amp;gt;}F)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 20:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366079#M1173511</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-24T20:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Condition for a chart</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366080#M1173512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is still tremendously helpful - Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 18:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Condition-for-a-chart/m-p/366080#M1173512</guid>
      <dc:creator />
      <dc:date>2014-09-10T18:51:29Z</dc:date>
    </item>
  </channel>
</rss>

