<?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 Calculatio in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculatio/m-p/1599970#M737786</link>
    <description>&lt;P&gt;If i break the following calculation in 6 seperate calculations they work find however in the form below (as i need it to be) it has an error - Garbage after expression:','&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(CalDay)&amp;gt;0,(Count ({&amp;lt;WardCode={'Grattan'}&amp;gt;}Distinct(BedDaysPatientID)))*2&lt;BR /&gt;-&lt;BR /&gt;if(GetSelectedCount(CalDay)&amp;gt;0,Count ({&amp;lt;WardCode={'Grattan'},Leave={'Y'}&amp;gt;}Distinct(BedDaysPatientID))))&lt;BR /&gt;/&lt;BR /&gt;if(GetSelectedCount(CalDay)&amp;gt;0,(Sum({&amp;lt;WardCode={'Grattan'}&amp;gt;}Data))*Count(CalDay))&lt;BR /&gt;,&lt;BR /&gt;if(GetSelectedCount(CalMonth)&amp;gt;0,(Count({&amp;lt;WardCode={'Grattan'}&amp;gt;}(BedDaysPatientID)))*2)&lt;BR /&gt;-&lt;BR /&gt;if(GetSelectedCount(CalMonth)&amp;gt;0,(Count({&amp;lt;WardCode={'Grattan'},Leave={'Y'}&amp;gt;}(BedDaysPatientID)))*2)&lt;BR /&gt;/&lt;BR /&gt;if(GetSelectedCount(CalMonth)&amp;gt;0,(Sum({&amp;lt;CalDay={1},WardCode={'Grattan'}&amp;gt;}Data))*Count(CalDay))&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>kev6brown</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Calculatio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatio/m-p/1599970#M737786</link>
      <description>&lt;P&gt;If i break the following calculation in 6 seperate calculations they work find however in the form below (as i need it to be) it has an error - Garbage after expression:','&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;if(GetSelectedCount(CalDay)&amp;gt;0,(Count ({&amp;lt;WardCode={'Grattan'}&amp;gt;}Distinct(BedDaysPatientID)))*2&lt;BR /&gt;-&lt;BR /&gt;if(GetSelectedCount(CalDay)&amp;gt;0,Count ({&amp;lt;WardCode={'Grattan'},Leave={'Y'}&amp;gt;}Distinct(BedDaysPatientID))))&lt;BR /&gt;/&lt;BR /&gt;if(GetSelectedCount(CalDay)&amp;gt;0,(Sum({&amp;lt;WardCode={'Grattan'}&amp;gt;}Data))*Count(CalDay))&lt;BR /&gt;,&lt;BR /&gt;if(GetSelectedCount(CalMonth)&amp;gt;0,(Count({&amp;lt;WardCode={'Grattan'}&amp;gt;}(BedDaysPatientID)))*2)&lt;BR /&gt;-&lt;BR /&gt;if(GetSelectedCount(CalMonth)&amp;gt;0,(Count({&amp;lt;WardCode={'Grattan'},Leave={'Y'}&amp;gt;}(BedDaysPatientID)))*2)&lt;BR /&gt;/&lt;BR /&gt;if(GetSelectedCount(CalMonth)&amp;gt;0,(Sum({&amp;lt;CalDay={1},WardCode={'Grattan'}&amp;gt;}Data))*Count(CalDay))&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatio/m-p/1599970#M737786</guid>
      <dc:creator>kev6brown</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculatio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatio/m-p/1599975#M737787</link>
      <description>&lt;P&gt;It looks like you need to remove one of the closing brackets before the comma. All of your parenthesis are closed before the comma but after the comma is your else statement.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatio/m-p/1599975#M737787</guid>
      <dc:creator>lockematthewp</dc:creator>
      <dc:date>2019-07-08T14:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculatio</title>
      <link>https://community.qlik.com/t5/QlikView/Calculatio/m-p/1599976#M737788</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You may Try this - (check brackets)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(GetSelectedCount(CalDay)&amp;gt;0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Count ({&amp;lt;WardCode={'Grattan'}&amp;gt;}Distinct BedDaysPatientID)*2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Count ({&amp;lt;WardCode={'Grattan'},Leave={'Y'}&amp;gt;}Distinct BedDaysPatientID))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;WardCode={'Grattan'}&amp;gt;}Data))*Count(CalDay)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if(GetSelectedCount(CalMonth)&amp;gt;0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Count({&amp;lt;WardCode={'Grattan'}&amp;gt;}BedDaysPatientID)*2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Count({&amp;lt;WardCode={'Grattan'},Leave={'Y'}&amp;gt;} BedDaysPatientID)*2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum({&amp;lt;CalDay={1},WardCode={'Grattan'}&amp;gt;}Data))*Count(CalDay)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 14:40:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculatio/m-p/1599976#M737788</guid>
      <dc:creator>neelamsaroha157</dc:creator>
      <dc:date>2019-07-08T14:40:19Z</dc:date>
    </item>
  </channel>
</rss>

