<?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: What is wrong in this if Statment? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398570#M148388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just paste a sample and Explain what u want&amp;nbsp; finally...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 05:53:40 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2012-12-04T05:53:40Z</dc:date>
    <item>
      <title>What is wrong in this if Statment?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398566#M148384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(ySeg='Total',sum({1&amp;lt;ySeg={'S02','S03','S04'},yMonth={'$(=only(yMonth))'}&amp;gt;} yRev), yRev)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please write the correct statement for this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to enter the sum of S02,S03,S04 in a grid against the Seg is Total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Gaurav Tyagi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 09:06:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398566#M148384</guid>
      <dc:creator />
      <dc:date>2012-12-03T09:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong in this if Statment?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398567#M148385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ySeg is your dimension and you want to check if your current line is a total line or a detail line? Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Total' is just a label, not a dimension value you can check. Use dimensionality() function for this (or secondarydimensionality() with a pivoted dimension), something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(dimensionality() = 0,sum({1&amp;lt;ySeg={'S02','S03','S04'},yMonth={'$(=only(yMonth))'}&amp;gt;} yRev), yRev)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: depending on the number of your dimensions you are calculating (sub-)totals for, you need to adapt the value you check against (i.e. zero in my sample).&lt;/P&gt;&lt;P&gt;Check the HELP for dimensionality() and also check using &lt;EM&gt;=dimensionality()&lt;/EM&gt; as expression in your chart)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 11:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398567#M148385</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-12-03T11:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong in this if Statment?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398568#M148386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;'Total' is acctually a dimension.&lt;/P&gt;&lt;P&gt;I already changed my logic but will check this dimensionality function now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 05:05:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398568#M148386</guid>
      <dc:creator />
      <dc:date>2012-12-04T05:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong in this if Statment?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398569#M148387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may try like sum(if(......))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else attach some sample file, which will help to solve your prob....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 05:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398569#M148387</guid>
      <dc:creator />
      <dc:date>2012-12-04T05:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong in this if Statment?</title>
      <link>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398570#M148388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just paste a sample and Explain what u want&amp;nbsp; finally...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 05:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-is-wrong-in-this-if-Statment/m-p/398570#M148388</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2012-12-04T05:53:40Z</dc:date>
    </item>
  </channel>
</rss>

