<?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: Include Dimension Value in Set Analysis Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258876#M397407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(Date) AS Snapshot_Date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Student ID], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QlikviewInstructor, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Course Level],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;AutoNumber(QlikviewInstructor&amp;amp;[Student ID]) as Key&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Qlikview Course Enrolment.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151272_Capture.PNG" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beginner on Date A and on Date B&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Count(DISTINCT {&amp;lt;Key = P({$*State_DateA&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})*P({$*State_DateB&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})&amp;gt;} [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beginner on Date A but not on Date B&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT(DISTINCT {&amp;lt;Key = P({$*State_DateA&amp;lt;[Course Level] = {'Beginner'}&amp;gt;}) - P({$*State_DateB&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})&amp;gt;} [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beginner on Date B but not on Date A&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT(DISTINCT {&amp;lt;Key = P({$*State_DateB&amp;lt;[Course Level] = {'Beginner'}&amp;gt;}) - P({$*State_DateA&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})&amp;gt;} [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 17:49:30 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-01-30T17:49:30Z</dc:date>
    <item>
      <title>Include Dimension Value in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258875#M397406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;I refer to the comment “a set is only generated once for the entire table, not once per value of the dimensions” in the January 4, 2011 &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1335"&gt;Evaluating "sets" in the context of a dimension&lt;/A&gt; post by Gordon Savage. I am hoping that someone has devised a simplified work around for this problem or at least someone can assist me with the problem described below. Attached are two files:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;A Qlikview dashboard with the charts/tables I would like to create&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;An xlsx file with the sample data&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;The Qlikview dashboard is supposed to function as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;There are two alternate state: One for&amp;nbsp; Date A and the other for Date B. The user should use the list boxes to select the values for Date A and for Date B&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;The straight table below should shows for the Beginner course only:&lt;/SPAN&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Number of students registered with each Instructor on Date A&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Number of students registered with each Instructor on Date B&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;For each Instructor, the number of students registered on both Date A and Date B&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;For each Instructor, the number of students registered on Date A, but not Date B&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;For each Instructor, the number of students registered on Date B, but not Date B&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;In the example shown in the screenshot, the values in the last three columns are incorrect. Refer to columns 3 and 5 with the concatenated Student IDs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;3. The number of students registered on both Date A and Date B for Instructor A and B should be 2 and 1 respectively&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;4. The number of students registered on Date A but not on Date B for Instructor A and B should be 1 and 3 respectively&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;5. The number of students registered on Date B but not on Date A for Instructor A and B should be 4 and 2 respectively&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: 1.0in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;I will be extremely grateful if someone can help me solve this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;Maria&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d; background: white;"&gt;&lt;IMG alt="Beginners UI.PNG" class="jive-image image-1" src="/legacyfs/online/151261_Beginners UI.PNG" style="height: 416px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 17:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258875#M397406</guid>
      <dc:creator />
      <dc:date>2017-01-30T17:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include Dimension Value in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258876#M397407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date(Date) AS Snapshot_Date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Student ID], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; QlikviewInstructor, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Course Level],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;AutoNumber(QlikviewInstructor&amp;amp;[Student ID]) as Key&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Qlikview Course Enrolment.xls]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(biff, embedded labels, table is Sheet1$);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151272_Capture.PNG" style="height: 134px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beginner on Date A and on Date B&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= Count(DISTINCT {&amp;lt;Key = P({$*State_DateA&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})*P({$*State_DateB&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})&amp;gt;} [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beginner on Date A but not on Date B&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT(DISTINCT {&amp;lt;Key = P({$*State_DateA&amp;lt;[Course Level] = {'Beginner'}&amp;gt;}) - P({$*State_DateB&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})&amp;gt;} [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beginner on Date B but not on Date A&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=COUNT(DISTINCT {&amp;lt;Key = P({$*State_DateB&amp;lt;[Course Level] = {'Beginner'}&amp;gt;}) - P({$*State_DateA&amp;lt;[Course Level] = {'Beginner'}&amp;gt;})&amp;gt;} [Student ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 17:49:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258876#M397407</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Include Dimension Value in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258877#M397408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. I will try your proposed solution and will get back to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I gave a very simplified version of my data set and the straight table that I am required to develop. My actual data set requires that I have a drill-down group as the dimension.&amp;nbsp; That is, suppose instead of a simple dimension as QlikviewInstructor, there was a drill-down comprising fields such as School -&amp;gt; Dept -&amp;gt;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;QlikviewInstructor&lt;/SPAN&gt;. Will your proposed solution work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Maria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258877#M397408</guid>
      <dc:creator />
      <dc:date>2017-01-30T20:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Include Dimension Value in Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258878#M397409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other option would be to use Aggr() function which would work perfectly with a cycle or drill-down dimension, but exact expression will have to be tested out. Can you provide anther sample where you have School and Dept in your application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if QlikViewInstructor belong to one and only one dept and each department belong to one and only one school, then the above approach might still work for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 20:38:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-Dimension-Value-in-Set-Analysis-Expression/m-p/1258878#M397409</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T20:38:39Z</dc:date>
    </item>
  </channel>
</rss>

