<?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: Re: Complicated Expression/Calculated Dimension Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713970#M1064362</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i added a sample. I used a mekko but i think a bar would work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still 2 expressions but now I put each expression divided by the sum of both expressions and format both as %'s. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should work if you add a dimension like week or anything else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 03:34:23 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-09-17T03:34:23Z</dc:date>
    <item>
      <title>Complicated Expression/Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713966#M1064358</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;I am trying to create a Pie Chart which displays "Complete" Vs. "Incomplete" for a document called "PMS Checklist"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample screenshot of my data and the relevant relationship.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66925_pastedImage_0.png" style="width: auto; height: auto;" /&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/66926_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SIDs with document type "PMS Checklist" are complete, and the incomplete ones are SIDs that do not have document type "PMS Checklist" (made up of null values and other SIDs that appear in the data with different Document Types, that don't also have a PMS Checklist row) so i have the calculated dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(match([Document Type],'PMS Checklist'), [Document Type])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is "count(distinct SID)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that there are other document types which are both completed for PMS Checklist AND for other document types (E.g. SID 105358 has PMS Checklist completed as well as Safety Protocol) and as a result, the Safety Protocol row is being included in the number of SIDs that do not come under the calculated dimension. I have a total of 38 rows extra in the SIDs that don't match "PMS Checklist". If i try to filter out "Safety Protocol" for instance, it also filters out Document Types which are null. These null values make up the majority of incomplete documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this all makes sense, any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 01:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713966#M1064358</guid>
      <dc:creator />
      <dc:date>2014-09-17T01:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Expression/Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713967#M1064359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you want to count SID 105358 towards a 'complete' but not have it count towards 'incomplete'. With that , i would suggest having no dimension in the pie chart and 2 expressions to give you the 2 pie slices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st expression for complete is straight forward: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; count(&amp;nbsp; DISTINCT&amp;nbsp; if (&amp;nbsp; [Document Type] = 'PMS Checklist', SID) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd expression for incomplete is a bit more involved:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; count(&amp;nbsp; DISTINCT&amp;nbsp; if (&amp;nbsp; SubStringCount(aggr(concat( [Document Type],';'),SID), 'PMS Checklist') = 0, SID) )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Here i am counting the SID only if when i create a delimitted list of [Document Types] for each SID, the list does not contain 'PMS Checklist'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66929_Capture.PNG.png" style="width: 620px; height: 219px;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 02:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713967#M1064359</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-17T02:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Expression/Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713968#M1064360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jonathan, works like a charm!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 03:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713968#M1064360</guid>
      <dc:creator />
      <dc:date>2014-09-17T03:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Complicated Expression/Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713969#M1064361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another one for you: suppose i wanted to make a "% Completion" graph of this data Per Week, similar to the graph below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/66928_Capture.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this with the two expressions? When i try to create the graph, both expressions don't relate, so i can't make the percentage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 03:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713969#M1064361</guid>
      <dc:creator />
      <dc:date>2014-09-17T03:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Complicated Expression/Calculated Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713970#M1064362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i added a sample. I used a mekko but i think a bar would work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still 2 expressions but now I put each expression divided by the sum of both expressions and format both as %'s. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should work if you add a dimension like week or anything else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 03:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complicated-Expression-Calculated-Dimension-Problem/m-p/713970#M1064362</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-09-17T03:34:23Z</dc:date>
    </item>
  </channel>
</rss>

