<?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 (addition and subtraction )in Charts and Text Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1700236#M451169</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need your help. It seems to be a simple calculation but it&amp;nbsp; becomes complicated and I am unable to display what I want. I have attached the excel sheet for a sample. One tab is source data the other one is how I would like to display data in chart (straight table )and text boxes.&lt;/P&gt;&lt;P&gt;Following is the explanation&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HospitalWardName&lt;/STRONG&gt; : Shows show ward in a hospital&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Patients In Each Ward&lt;/STRONG&gt;: Shows Total Number of&amp;nbsp; patients&amp;nbsp; in each ward&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total Beds In Each Ward: &lt;/STRONG&gt;Shows Total number of beds in each ward&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Free Beds In wards:&lt;/STRONG&gt; Shows total number of free wards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Although I have Free beds in wards field but it did not display&amp;nbsp; data so I use the following calculation&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Free Beds In wards = (Total Beds In Each Ward ) - (&amp;nbsp;Patients In Each Ward)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Same issue with the TEXT BOX&amp;nbsp; I would like to display&amp;nbsp;&lt;STRONG&gt;Free Beds In wards but it did not display anything&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help ? Thanks In advance.&lt;/P&gt;&lt;P&gt;Please note in my original work I am using QVD files to get data&amp;nbsp; and use my database values for calculations. Excel sheet is a reference only&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;WS&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:40:29 GMT</pubDate>
    <dc:creator>waqasshah</dc:creator>
    <dc:date>2024-11-16T18:40:29Z</dc:date>
    <item>
      <title>Calculation (addition and subtraction )in Charts and Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1700236#M451169</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need your help. It seems to be a simple calculation but it&amp;nbsp; becomes complicated and I am unable to display what I want. I have attached the excel sheet for a sample. One tab is source data the other one is how I would like to display data in chart (straight table )and text boxes.&lt;/P&gt;&lt;P&gt;Following is the explanation&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HospitalWardName&lt;/STRONG&gt; : Shows show ward in a hospital&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Patients In Each Ward&lt;/STRONG&gt;: Shows Total Number of&amp;nbsp; patients&amp;nbsp; in each ward&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total Beds In Each Ward: &lt;/STRONG&gt;Shows Total number of beds in each ward&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Free Beds In wards:&lt;/STRONG&gt; Shows total number of free wards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Although I have Free beds in wards field but it did not display&amp;nbsp; data so I use the following calculation&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Free Beds In wards = (Total Beds In Each Ward ) - (&amp;nbsp;Patients In Each Ward)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;Same issue with the TEXT BOX&amp;nbsp; I would like to display&amp;nbsp;&lt;STRONG&gt;Free Beds In wards but it did not display anything&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help ? Thanks In advance.&lt;/P&gt;&lt;P&gt;Please note in my original work I am using QVD files to get data&amp;nbsp; and use my database values for calculations. Excel sheet is a reference only&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;WS&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1700236#M451169</guid>
      <dc:creator>waqasshah</dc:creator>
      <dc:date>2024-11-16T18:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation (addition and subtraction )in Charts and Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1700490#M451181</link>
      <description>&lt;P&gt;Hi Waqasshah,&lt;/P&gt;&lt;P&gt;Try below expression, I hope it will help you to get desire output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ashvita_1-1589038907795.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33257i03EB4780FF5EFEC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ashvita_1-1589038907795.png" alt="Ashvita_1-1589038907795.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For table Chart &amp;amp; Textbox:&lt;/P&gt;&lt;P&gt;PatientsInEachWard :&amp;nbsp;Sum(Aggr(Sum(DISTINCT PatientsInEachWard),HospitalWardName))&lt;/P&gt;&lt;P&gt;TotalBedsInWard :&amp;nbsp;Sum(Aggr(Sum(DISTINCT TotalBedsInWard),HospitalWardName))&lt;/P&gt;&lt;P&gt;FreeBedsInWard:&amp;nbsp;Sum(Aggr(Sum(DISTINCT TotalBedsInWard)-Sum(DISTINCT PatientsInEachWard),HospitalWardName))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashvita&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 15:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1700490#M451181</guid>
      <dc:creator>AshvitaKatkar</dc:creator>
      <dc:date>2020-05-10T15:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation (addition and subtraction )in Charts and Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1700515#M451182</link>
      <description>&lt;P&gt;Dear Ashvita,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply. Can you please upload the QVW file that you worked on ?&amp;nbsp; I would like to play around.Again many thanks for your help.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Waqaas Shah&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 18:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1700515#M451182</guid>
      <dc:creator>waqasshah</dc:creator>
      <dc:date>2020-05-10T18:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation (addition and subtraction )in Charts and Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1701489#M451216</link>
      <description>&lt;P&gt;hi Waqasshah,&lt;/P&gt;&lt;P&gt;Sorry for late reply.&lt;/P&gt;&lt;P&gt;PFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashvita&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2020 10:42:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-addition-and-subtraction-in-Charts-and-Text-Box/m-p/1701489#M451216</guid>
      <dc:creator>AshvitaKatkar</dc:creator>
      <dc:date>2020-05-13T10:42:05Z</dc:date>
    </item>
  </channel>
</rss>

