<?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 Comma breaks set analysis expression in an Inline table load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comma-breaks-set-analysis-expression-in-an-Inline-table-load/m-p/1546481#M439903</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following INLINE table with a simple expression which works correctly when I create a SET variable = "=@SurgicalNetRev" .&lt;/P&gt;&lt;PRE&gt;NetRevenueOption:
LOAD * INLINE [
    @NetRevOptionNum, NetRevOption, @NetRevField, @IPNetRevField, @OPNetRevField, @GrossRevField, @IPGrossRevField, @OPGrossRevField, @NRCases, @SurgicalNetRev
    1, Cash Reimbursement, ActualReimbursement, IPActualReimbursement, OPActualReimbursement, ChargesWCash, IPChargesWCash, OPChargesWCash, CashCases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}ActualReimbursement)
    2, Standard Reimbursement, StandardReimbursement, IPStandardReimbursement, OPStandardReimbursement, GrossPatientRevenue, IPCharges, OPCharges, Cases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}StandardReimbursement)
    3, Expected Payment, GrossReimbursement, IPGrossReimbursement, OPGrossReimbursement, ChargesWExpReimb, IPChargesWExpReimb, OPChargesWExpReimb, ExpReimbCases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}GrossReimbursement)
    4, Cleared Payments, ClearedPayments, IPClearedPayments, OPClearedPayments, ClearedCharges, ClearedIPCharges, ClearedOPCharges, ClearedCases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}ClearedPayments)
];&lt;/PRE&gt;&lt;P&gt;My problem comes when I want to add more than one condition in my set analysis expression.&amp;nbsp; Adding a "," breaks apart the expression and my variable is set to only include the portion prior to the comma.&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;SurgicalCases = {1}, CostedIND = {1}&amp;gt;}ActualReimbursement)&lt;/P&gt;&lt;P&gt;My set variable is SUM({$&amp;lt;Surgical={1}&lt;/P&gt;&lt;P&gt;How can I get the expression in the INLINE table to include everything including and after the comma?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 16:26:26 GMT</pubDate>
    <dc:creator>NickHoff</dc:creator>
    <dc:date>2019-02-19T16:26:26Z</dc:date>
    <item>
      <title>Comma breaks set analysis expression in an Inline table load</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-breaks-set-analysis-expression-in-an-Inline-table-load/m-p/1546481#M439903</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following INLINE table with a simple expression which works correctly when I create a SET variable = "=@SurgicalNetRev" .&lt;/P&gt;&lt;PRE&gt;NetRevenueOption:
LOAD * INLINE [
    @NetRevOptionNum, NetRevOption, @NetRevField, @IPNetRevField, @OPNetRevField, @GrossRevField, @IPGrossRevField, @OPGrossRevField, @NRCases, @SurgicalNetRev
    1, Cash Reimbursement, ActualReimbursement, IPActualReimbursement, OPActualReimbursement, ChargesWCash, IPChargesWCash, OPChargesWCash, CashCases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}ActualReimbursement)
    2, Standard Reimbursement, StandardReimbursement, IPStandardReimbursement, OPStandardReimbursement, GrossPatientRevenue, IPCharges, OPCharges, Cases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}StandardReimbursement)
    3, Expected Payment, GrossReimbursement, IPGrossReimbursement, OPGrossReimbursement, ChargesWExpReimb, IPChargesWExpReimb, OPChargesWExpReimb, ExpReimbCases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}GrossReimbursement)
    4, Cleared Payments, ClearedPayments, IPClearedPayments, OPClearedPayments, ClearedCharges, ClearedIPCharges, ClearedOPCharges, ClearedCases, SUM({$&amp;lt;SurgicalCases = {1}&amp;gt;}ClearedPayments)
];&lt;/PRE&gt;&lt;P&gt;My problem comes when I want to add more than one condition in my set analysis expression.&amp;nbsp; Adding a "," breaks apart the expression and my variable is set to only include the portion prior to the comma.&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;SurgicalCases = {1}, CostedIND = {1}&amp;gt;}ActualReimbursement)&lt;/P&gt;&lt;P&gt;My set variable is SUM({$&amp;lt;Surgical={1}&lt;/P&gt;&lt;P&gt;How can I get the expression in the INLINE table to include everything including and after the comma?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-breaks-set-analysis-expression-in-an-Inline-table-load/m-p/1546481#M439903</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2019-02-19T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Comma breaks set analysis expression in an Inline table load</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-breaks-set-analysis-expression-in-an-Inline-table-load/m-p/1546501#M439906</link>
      <description>&lt;P&gt;I can suggest two alternatives:&lt;/P&gt;&lt;P&gt;1. Place single quotes around the value in the inline load.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Use a different delimiter, for example |.&amp;nbsp; You would need to change all your commas and then add the clause:&lt;/P&gt;&lt;P&gt;delimiter is '|'&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 16:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-breaks-set-analysis-expression-in-an-Inline-table-load/m-p/1546501#M439906</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-02-19T16:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Comma breaks set analysis expression in an Inline table load</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-breaks-set-analysis-expression-in-an-Inline-table-load/m-p/1546539#M439907</link>
      <description>&lt;P&gt;I didn't realize I could use the delimiter for a single Inline.&amp;nbsp; &amp;nbsp;The single quotes works as well.&amp;nbsp; Thank you Rob.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 18:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-breaks-set-analysis-expression-in-an-Inline-table-load/m-p/1546539#M439907</guid>
      <dc:creator>NickHoff</dc:creator>
      <dc:date>2019-02-19T18:49:37Z</dc:date>
    </item>
  </channel>
</rss>

