<?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: Two calculations in Single Dimension for a Pie Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985255#M949395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Thanks Swuehl. I can't post more details here due to Privacy. Anyway, the given expression solves my issue but when I select the Blocked Section, the color of the pie changes to the one that of Not Blocked, but at least it doesn't show two sections. Any idea what's causing the color issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 20:59:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-09T20:59:45Z</dc:date>
    <item>
      <title>Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985253#M949393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a Pie Chart which should give me two sections-Blocked and Not Blocked based on the following two conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition 1:&lt;/P&gt;&lt;P&gt;If([Lifecycle1]&amp;gt;0,'Blocked','Not Blocked')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition 2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Lifecycle2]&amp;gt;0,'Blocked','Not Blocked')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I am doing to get this done. I have created a Dimension with the following expression inside it.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Lifecycle1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;0&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Lifecycle2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;0,'Blocked','Not Blocked') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And in the Expressions, I am using &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;Count(Distinct([Application ID]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The pie chart gives me two sections with Blocked and Not Blocked. When I select the Not Blocked, the whole pie changes to Not Blocked, which is fine. But when I select Blocked section of the pie, it returns both Blocked and Not Blocked. What is the issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 19:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985253#M949393</guid>
      <dc:creator />
      <dc:date>2015-12-09T19:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985254#M949394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you click on 'Blocked' section, you are essentially selecting values in fields Lifecycle1 and Lifecycle2.&lt;/P&gt;&lt;P&gt;Without knowing your data and model, it's hard to tell why these selections result in 'Blocked' section still showing up, but potentially this may happen when the selected Lifecycle values allow this.&lt;/P&gt;&lt;P&gt;I assume you want a selection on field Application ID instead, use this as calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Aggr(&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Lifecycle1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;[Lifecycle2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;0,'Blocked','Not Blocked'), [Application ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985254#M949394</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-09T20:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985255#M949395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Thanks Swuehl. I can't post more details here due to Privacy. Anyway, the given expression solves my issue but when I select the Blocked Section, the color of the pie changes to the one that of Not Blocked, but at least it doesn't show two sections. Any idea what's causing the color issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985255#M949395</guid>
      <dc:creator />
      <dc:date>2015-12-09T20:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985256#M949396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood correctly, I think that's QV standard (if only one section is shown, the color #1 of the palette will be used, regardless of the calculated dimension value). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the option 'persistent colors' on color tab of pie chart properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:17:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985256#M949396</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-09T21:17:37Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985257#M949397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Selecting and De-selecting it is not brining any change to the pie chart colors, Swuehl. When no section is selected, the Blocked section is Red and the Not Blocked is Green. But when I select Blocked, the whole pie chart turns to red. When I select the Not Blocked section, the whole pie turns to Red, instead of Green.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985257#M949397</guid>
      <dc:creator />
      <dc:date>2015-12-09T21:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985258#M949398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a background color attribute expression (on expression tab, open attributes by clicking the small plus sign):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #edf8ca;"&gt;=Aggr(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #edf8ca;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #edf8ca;"&gt;[Lifecycle1]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff; background-color: #edf8ca;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000; background-color: #edf8ca;"&gt;[Lifecycle2]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #edf8ca;"&gt;&amp;gt;0, LightRed(), Lightgreen() ), [Application ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985258#M949398</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-09T21:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985259#M949399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried it. Still not working. The Colors tab in the Object properties lists the colors in the order of the conditions.&lt;/P&gt;&lt;P&gt;For example, in Data Appearance, if the Colors 1-6 has Red and Yellow in order, whenever the first condition is true (in my case Blocked) in the expression, it automatically uses the color Red. Similarly, if the second condition is true (in my case Not Blocked), it will take Yellow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't understand why it is not following the color scheme. Although the count is correct, it doesn't make sense if I select Blocked and I see Red and when I select Not Blocked, I see Red again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:37:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985259#M949399</guid>
      <dc:creator />
      <dc:date>2015-12-09T21:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985260#M949400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you are using the background color attribute expresssions? It shouldn't follow the palette colors then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985260#M949400</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-09T22:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985261#M949401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I did the expression inside the Dimension's Background Color Attribute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:03:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985261#M949401</guid>
      <dc:creator />
      <dc:date>2015-12-09T22:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985262#M949402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, I think I've mentioned the expression tab...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:13:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985262#M949402</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-09T22:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Two calculations in Single Dimension for a Pie Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985263#M949403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am so sorry Swuehl. I might have missed it. Thanks, this fixes the issue. I really appreciate your help and time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2015 14:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-calculations-in-Single-Dimension-for-a-Pie-Chart/m-p/985263#M949403</guid>
      <dc:creator />
      <dc:date>2015-12-10T14:20:15Z</dc:date>
    </item>
  </channel>
</rss>

