<?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 Clause in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260260#M581632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can either use a calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Cost Element]='ABC',[Cost Element])&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use set analysis in all of your chart expressions (you need an aggregation function to use set analysis in an expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, use [Cost Element] as dimension and&amp;nbsp; (this will aggegate your values!):&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Cost Element]={'ABC'}&amp;gt;} [Jan Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right expressions and dimensions will depend on what you want to show in the chart, of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Nov 2011 15:13:53 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-11-28T15:13:53Z</dc:date>
    <item>
      <title>Where Clause in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260258#M581630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a QVD with data like... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 100%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Cost Element&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Jan Sales&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Feb Sales&lt;BR /&gt;&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;1233&lt;/TD&gt;&lt;TD&gt;45454&lt;/TD&gt;&lt;TD&gt;VS001&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;866&lt;/TD&gt;&lt;TD&gt;VS001&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;2234&lt;/TD&gt;&lt;TD&gt;454&lt;/TD&gt;&lt;TD&gt;VS001&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CCC&lt;/TD&gt;&lt;TD&gt;222&lt;/TD&gt;&lt;TD&gt;77&lt;/TD&gt;&lt;TD&gt;VS001&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CCC&lt;/TD&gt;&lt;TD&gt;4545&lt;/TD&gt;&lt;TD&gt;77&lt;/TD&gt;&lt;TD&gt;VS001&lt;/TD&gt;&lt;TD&gt;&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if I can create a chart from this QVD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Cost Element=ABC then only display lines with ABC cost element &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then another chart for Cost Element CCC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 14:44:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260258#M581630</guid>
      <dc:creator />
      <dc:date>2011-11-28T14:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260259#M581631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sure u can easly achieve the result using Trellis charts.&lt;/P&gt;&lt;P&gt;Create your chart with "Cost Element" as dimension, then use click on Trellis button and "Enable Trellis Chart". Than you can configure the number of Row and the number of Column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿﻿&lt;IMG __jive_id="8999" alt="Trellis.jpg" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/8999_Trellis.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use other approachs (like set analysis) but the trellis chart is the most efficient to implement and dinamic (you don't have to change you document if a new cost element is added).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;Marco.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260259#M581631</guid>
      <dc:creator />
      <dc:date>2011-11-28T15:12:36Z</dc:date>
    </item>
    <item>
      <title>Where Clause in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260260#M581632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can either use a calculated dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Cost Element]='ABC',[Cost Element])&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use set analysis in all of your chart expressions (you need an aggregation function to use set analysis in an expression).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, use [Cost Element] as dimension and&amp;nbsp; (this will aggegate your values!):&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;[Cost Element]={'ABC'}&amp;gt;} [Jan Sales])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right expressions and dimensions will depend on what you want to show in the chart, of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260260#M581632</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-28T15:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause in chart</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260261#M581633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated dimension worked and then I suppress where NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! you are a star!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 15:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-in-chart/m-p/260261#M581633</guid>
      <dc:creator />
      <dc:date>2011-11-28T15:25:13Z</dc:date>
    </item>
  </channel>
</rss>

