<?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 Re: Expression Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/751462#M267956</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I get it right, you can go ahead like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Divide each &lt;SPAN style="font-family: courier new,courier;"&gt;Sum({SetAnalysis} OpenBalance + DebitExpr - CreditExpr)&lt;/SPAN&gt; sub-expression into three separate subexpressions, like &lt;SPAN style="font-family: courier new,courier;"&gt;Sum({SetAnalysis} OpenBalance) + Sum({SetAnalysis} DebitExpr) - Sum({SetAnalysis} CreditExpr)&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Copy the set modifiers to each new subexpression. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Then add the extra set modifier &lt;SPAN style="font-family: courier new,courier;"&gt;MonthNum={$(vMinMonth)}&lt;/SPAN&gt; to the first Sum() only.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2015 22:17:36 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2015-01-07T22:17:36Z</dc:date>
    <item>
      <title>Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/751461#M267955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif'; color: black;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif'; color: black;"&gt;I have an expression i.e :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif'; color: black;"&gt;=&lt;BR /&gt; if(GetSelectedCount(Section1=1),&lt;BR /&gt; &lt;BR /&gt; (If(([P&amp;amp;L Level] = 's' or IsAdjustment = '1'), ' ',Sum({Period_1&amp;lt;CompanyName=$::CompanyName,Department=$::Department,Format=$::Format,Format_Data1=$::Format_Data1,Format_Data2=$::Format_Data2,SourceName=$::SourceName,TransTypeName=$::TransTypeName,Section1=$::Section1&amp;gt;}(&lt;STRONG&gt;&lt;EM&gt;$(OpenBalanceExpression)&lt;/EM&gt;&lt;/STRONG&gt;+(&lt;STRONG&gt;&lt;EM&gt;$(DebitExpression)&lt;/EM&gt;&lt;/STRONG&gt;-&lt;STRONG&gt;&lt;EM&gt;$(CreditExpression)&lt;/EM&gt;&lt;/STRONG&gt;))))),&lt;BR /&gt; &lt;BR /&gt; If(([P&amp;amp;L Level] = 's' or IsAdjustment = '1') , ' ',sum({Period_1&amp;lt;CompanyName=$::CompanyName,Department=$::Department,Format=$::Format,Format_Data1=$::Format_Data1,Format_Data2=$::Format_Data2,SourceName=$::SourceName,TransTypeName=$::TransTypeName&amp;gt;}(&lt;STRONG&gt;&lt;EM&gt;$(OpenBalanceExpression)&lt;/EM&gt;&lt;/STRONG&gt;+(&lt;STRONG&gt;&lt;EM&gt;$(DebitExpression)&lt;/EM&gt;&lt;/STRONG&gt;-&lt;STRONG&gt;&lt;EM&gt;$(CreditExpression)&lt;/EM&gt;&lt;/STRONG&gt;))))&lt;BR /&gt; )&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif'; color: black;"&gt;Where &lt;EM&gt;I have to put a condition for OpenBalanceExpression that is :&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif'; color: black;"&gt;Sum({$&amp;lt;MonthNum={&lt;STRONG&gt;&lt;EM&gt;$(vMinMonth)&lt;/EM&gt;&lt;/STRONG&gt;}&amp;gt;} &lt;STRONG&gt;&lt;EM&gt;$(OpenBalanceExpression)&lt;/EM&gt;&lt;/STRONG&gt; ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif'; color: black;"&gt;Only for &lt;STRONG&gt;&lt;EM&gt;OpenBalanceExpression&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;And I have written on variable&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;OpenBalanceExpression = &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Cambria','serif'; color: black;"&gt;OpenBal &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;DebitExpression = &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Debit&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;CreditExpression = &lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Credit&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;EM style="color: black; font-size: 12.0pt; font-family: 'Cambria','serif';"&gt;Thanks.&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 18:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/751461#M267955</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2015-01-07T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/751462#M267956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I get it right, you can go ahead like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Divide each &lt;SPAN style="font-family: courier new,courier;"&gt;Sum({SetAnalysis} OpenBalance + DebitExpr - CreditExpr)&lt;/SPAN&gt; sub-expression into three separate subexpressions, like &lt;SPAN style="font-family: courier new,courier;"&gt;Sum({SetAnalysis} OpenBalance) + Sum({SetAnalysis} DebitExpr) - Sum({SetAnalysis} CreditExpr)&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Copy the set modifiers to each new subexpression. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Then add the extra set modifier &lt;SPAN style="font-family: courier new,courier;"&gt;MonthNum={$(vMinMonth)}&lt;/SPAN&gt; to the first Sum() only.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 22:17:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/751462#M267956</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-01-07T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/751463#M267957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif'; color: #000000; font-size: 12pt;"&gt;Thanks Peter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif'; color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;I accept the point for the same : &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;Sum({SetAnalysis} OpenBalance) + Sum({SetAnalysis} DebitExpr) - Sum({SetAnalysis} CreditExpr)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif'; color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif'; color: #000000; font-size: 12pt;"&gt;Can you help me to make the same expression by using all parameter. I am using alternate states so that I am not able to make it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG style="font-family: 'Cambria','serif';"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;STRONG style="font-family: 'Cambria','serif';"&gt;My Expression :-&lt;/STRONG&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif'; color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif'; color: #000000; font-size: 12pt;"&gt;If(([P&amp;amp;L Level] = 's' or IsAdjustment = '1'), ,Sum({Period_1&amp;lt;CompanyName=$::CompanyName&amp;gt;}(&lt;EM&gt;&lt;STRONG style="font-family: 'Cambria','serif';"&gt;$(OpenBalanceExpression)&lt;/STRONG&gt;&lt;/EM&gt;+(&lt;EM&gt;&lt;STRONG style="font-family: 'Cambria','serif';"&gt;$(DebitExpression)&lt;/STRONG&gt;&lt;/EM&gt;-&lt;EM&gt;&lt;STRONG style="font-family: 'Cambria','serif';"&gt;$(CreditExpression)&lt;/STRONG&gt;&lt;/EM&gt;))))&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt; font-family: 'Cambria','serif';"&gt;Thanks Again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 08:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-Help/m-p/751463#M267957</guid>
      <dc:creator>sona_sa</dc:creator>
      <dc:date>2015-01-08T08:55:40Z</dc:date>
    </item>
  </channel>
</rss>

