<?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 Replacing an expression with a variable in pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Replacing-an-expression-with-a-variable-in-pivot-table/m-p/25579#M1749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to Qlik and im working my way through my first project and have hit a hurdle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table which has expressions that work out a rag rating for different setcions.&lt;/P&gt;&lt;P&gt;I have the attached table. Below are the expressions (Quite long:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technical:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Good'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.9&lt;/P&gt;&lt;P&gt;AND count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])=0,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Good'}&amp;gt;}[Technical Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Satisfactory'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.75&lt;/P&gt;&lt;P&gt;AND count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.01,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF((count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Less Than Satisfactory'}&amp;gt;}[Technical Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating]))/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.35&lt;/P&gt;&lt;P&gt;AND count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.05,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF((count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Less Than Satisfactory'}&amp;gt;}[Technical Rating]))/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.35&lt;/P&gt;&lt;P&gt;OR count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.05,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Compliance:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.01,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.03,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.05,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.05,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.8,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.6,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.5,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;=0.5,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reserving:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.95,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.9,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.85,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;=0.85,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These work fine, but I need to add another column for the overall score. The problem here is, I reach the expression limit as the overall score includes all of the above expressions.&lt;/P&gt;&lt;P&gt;I have tried putting each of these expressions into variables and using them in the formula, as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF([vComplianceRating]='Unacceptable','Unacceptable',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Unacceptable','1','0'))&amp;gt;=3,&lt;/P&gt;&lt;P&gt;'Unacceptable',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Unacceptable','1','0'))&amp;gt;=1,&lt;/P&gt;&lt;P&gt;'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Less Than Satisfactory','1','0'))&amp;gt;=3,&lt;/P&gt;&lt;P&gt;'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Less Than Satisfactory','1','0'))&amp;lt;=2,&lt;/P&gt;&lt;P&gt;'Good','Error')))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this seems to calculate the whole data set rather than the individual rows like the others do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2018 09:40:10 GMT</pubDate>
    <dc:creator>nathan4988</dc:creator>
    <dc:date>2018-05-14T09:40:10Z</dc:date>
    <item>
      <title>Replacing an expression with a variable in pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Replacing-an-expression-with-a-variable-in-pivot-table/m-p/25579#M1749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to Qlik and im working my way through my first project and have hit a hurdle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table which has expressions that work out a rag rating for different setcions.&lt;/P&gt;&lt;P&gt;I have the attached table. Below are the expressions (Quite long:)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Technical:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Good'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.9&lt;/P&gt;&lt;P&gt;AND count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])=0,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Good'}&amp;gt;}[Technical Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Satisfactory'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.75&lt;/P&gt;&lt;P&gt;AND count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.01,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF((count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Less Than Satisfactory'}&amp;gt;}[Technical Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating]))/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.35&lt;/P&gt;&lt;P&gt;AND count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.05,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF((count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Less Than Satisfactory'}&amp;gt;}[Technical Rating]))/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.35&lt;/P&gt;&lt;P&gt;OR count({&amp;lt;[GMRTag Flag]={'Y'},[Technical Rating]={'Unacceptable'}&amp;gt;}[Technical Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.05,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Compliance:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.01,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.03,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;0.05,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Less Than Satisfactory'}&amp;gt;}[Compliance Rating])+count({&amp;lt;[GMRTag Flag]={'Y'},[Compliance Rating]={'Unacceptable'}&amp;gt;}[Compliance Rating])&lt;/P&gt;&lt;P&gt;/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.05,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.8,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.6,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;0.5,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Customer Rating]={'Good'}&amp;gt;}[Customer Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;=0.5,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reserving:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.95,'Good',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.9,'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;gt;=0.85,'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(count({&amp;lt;[GMRTag Flag]={'Y'},[Reserving Rating]={'Good'}&amp;gt;}[Reserving Rating])/Count({&amp;lt;[GMRTag Flag]={'Y'}&amp;gt;}[Claim Number])&amp;lt;=0.85,'Unacceptable','Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These work fine, but I need to add another column for the overall score. The problem here is, I reach the expression limit as the overall score includes all of the above expressions.&lt;/P&gt;&lt;P&gt;I have tried putting each of these expressions into variables and using them in the formula, as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF([vComplianceRating]='Unacceptable','Unacceptable',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Unacceptable','1','0'))&amp;gt;=3,&lt;/P&gt;&lt;P&gt;'Unacceptable',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Unacceptable','1','0'))&amp;gt;=1,&lt;/P&gt;&lt;P&gt;'Less Than Satisfactory',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Less Than Satisfactory','1','0'))&amp;gt;=3,&lt;/P&gt;&lt;P&gt;'Satisfactory',&lt;/P&gt;&lt;P&gt;IF(Sum(IF([vTechnicalRating]='Unacceptable','1','0')&lt;/P&gt;&lt;P&gt;+IF([vComplianceRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vCustomerRating]='Less Than Satisfactory','1','0')&lt;/P&gt;&lt;P&gt;+IF([vReservingRating]='Less Than Satisfactory','1','0'))&amp;lt;=2,&lt;/P&gt;&lt;P&gt;'Good','Error')))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this seems to calculate the whole data set rather than the individual rows like the others do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2018 09:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replacing-an-expression-with-a-variable-in-pivot-table/m-p/25579#M1749</guid>
      <dc:creator>nathan4988</dc:creator>
      <dc:date>2018-05-14T09:40:10Z</dc:date>
    </item>
  </channel>
</rss>

