<?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 Where statements in a pivot table. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238035#M89016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, tricky question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that we want to show Inventory Types (Shortage, On Hand, Book, Adjusted Books, Sales, etc.) Well, on the table, each one of Inventory types has an Inventory Dollar Amount. How can I add a column on my pivot table that will bring in JUST the dollar amounts where the Inventory Type Code = S for sales, B for books, etc.&lt;/P&gt;&lt;P&gt;Am I over thinking this process? My original thought was to have something like this as the expression for Inventory Sales.&lt;/P&gt;&lt;P&gt;=sum(Current_Year.INV_DOLLAR_AMT) where INV_TYP_CDE = 'S'&lt;/P&gt;&lt;P&gt;But QV tells me there is garbage after my statement.&lt;/P&gt;&lt;P&gt;Any help would be GREATLY appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 21:54:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-11T21:54:38Z</dc:date>
    <item>
      <title>Where statements in a pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238035#M89016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, tricky question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that we want to show Inventory Types (Shortage, On Hand, Book, Adjusted Books, Sales, etc.) Well, on the table, each one of Inventory types has an Inventory Dollar Amount. How can I add a column on my pivot table that will bring in JUST the dollar amounts where the Inventory Type Code = S for sales, B for books, etc.&lt;/P&gt;&lt;P&gt;Am I over thinking this process? My original thought was to have something like this as the expression for Inventory Sales.&lt;/P&gt;&lt;P&gt;=sum(Current_Year.INV_DOLLAR_AMT) where INV_TYP_CDE = 'S'&lt;/P&gt;&lt;P&gt;But QV tells me there is garbage after my statement.&lt;/P&gt;&lt;P&gt;Any help would be GREATLY appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 21:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238035#M89016</guid>
      <dc:creator />
      <dc:date>2010-05-11T21:54:38Z</dc:date>
    </item>
    <item>
      <title>Where statements in a pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238036#M89017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's just a syntax issue. Set analysis is probably the most efficient way to handle this. Here's the set analysis syntax.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;INV_TYP_CDE={'S'}&amp;gt;} Current_Year.INV_DOLLAR_AMT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 22:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238036#M89017</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-05-11T22:32:50Z</dc:date>
    </item>
    <item>
      <title>Where statements in a pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238037#M89018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In QV you shoud use if statements:&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;sum(if(INV_TYP_CDE = 'S', Current_Year.INV_DOLLAR_AMT))&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 22:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238037#M89018</guid>
      <dc:creator />
      <dc:date>2010-05-11T22:33:27Z</dc:date>
    </item>
    <item>
      <title>Where statements in a pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238038#M89019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, that did the trick. Thank you very much! Silly syntax problems...haha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 22:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238038#M89019</guid>
      <dc:creator />
      <dc:date>2010-05-11T22:43:21Z</dc:date>
    </item>
    <item>
      <title>Re:Where statements in a pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238039#M89020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis is faster Ricardo. Check this link out:&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/forums/p/17188/71371.aspx#71371"&gt;http://community.qlik.com/forums/p/17188/71371.aspx#71371&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 05:43:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238039#M89020</guid>
      <dc:creator />
      <dc:date>2010-05-12T05:43:55Z</dc:date>
    </item>
    <item>
      <title>Re:Where statements in a pivot table.</title>
      <link>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238040#M89021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Matt &lt;IMG alt="Yes" src="http://community.qlik.com/emoticons/emotion-21.gif" /&gt; you're right.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 May 2010 05:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-statements-in-a-pivot-table/m-p/238040#M89021</guid>
      <dc:creator />
      <dc:date>2010-05-12T05:51:35Z</dc:date>
    </item>
  </channel>
</rss>

