<?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: P() set analysis for the discussed example in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110049#M750903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to see what you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2018 12:06:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-06T12:06:03Z</dc:date>
    <item>
      <title>P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110048#M750902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This was my original Expression for a Straight Table. This is the expression of Scheduled Task &lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;PRIORITY ={'Tier I'}&amp;gt;DISTINCT TASK_ID)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217581_Untitled.png" style="height: 105px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to enter the value of Calendar as P() in set analysis because This calendar is independent and I want to put all value in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/217582_Untitled.png" style="height: 105px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;: The value of YEAR = Year, Quarter = Quarter and Month = Year month.&lt;/P&gt;&lt;P&gt;so my query I wrote is below that shows error. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;PRIORITY ={'Tier I'}&amp;gt;,&amp;lt;DUE_DATE = P(&amp;lt;YEAR = Year&amp;gt;, &amp;lt;Month = YearMonth&amp;gt;, &amp;lt;Quarter = Quarter&amp;gt;)}DISTINCT TASK_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110048#M750902</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110049#M750903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to see what you have?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 12:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110049#M750903</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-06T12:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110050#M750904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you just need to assign the field values for a year and month combination from your data island calendar to an appropriate field associated with DUE_DATE.&lt;/P&gt;&lt;P&gt;Is there such a field with the same format as used in your data island calendar?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a bit sceptical looking at Month vs. YearMonth field, at least this seems to be sloppy naming convention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then it looks like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;COUNT( {&amp;lt;PRIORITY ={'Tier I'}, Month = p(YearMonth) &amp;gt;} DISTINCT TASK_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Where Month is in fact a field with granularity year &amp;amp; month connected to your DUE_DATE / TASK_ID and showing compatible values to your island calendar YearMonth.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;edit:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Modifying your Month field selection this way may need clearing all fields that may show incompatible selections in other calendar fields connected to Month, like Year, pure Month, Quarter etc. To clear a field use the pure field name in your set modifier or maybe just ignore all user selections using set identifier 1.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 12:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110050#M750904</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-11-06T12:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110051#M750905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for all your feedback. Initially this Dashboard was developed and I am going to add a new table with huge data . I am not able to Join as Previous join was Cross Join and when I join it hangs.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled-1.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/217660_Untitled-1.png" style="height: 339px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I am trying to make Task as data island but user wants when the Click the calendar previously made should update values. Say one field is Scheduled Task, the expression is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;COUNT({&amp;lt;PRIORITY ={'Tier I'}&amp;gt;DISTINCT TASK_ID). My apology Stefan, The Year field is Year, Quarter field is Qurter and Month is Monthname. I have to add all in set analysis. Please adivice.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217659_Untitled.png" style="height: 174px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 16:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110051#M750905</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2018-11-06T16:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110052#M750906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is my final Set Analysis:&lt;/P&gt;&lt;P&gt;COUNT({&amp;lt;PRIORITY ={'Tier I'},Year = p(Year), Month = p(MonthName),Quarter = p(Quarter)&amp;gt;} DISTINCT TASK_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it is not working. I presume there is some error in my set analysis. Please suggest.&lt;/P&gt;&lt;P&gt;Niha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 21:02:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110052#M750906</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2018-11-08T21:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110053#M750907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Year, Month and Quarter are part of your calendar table, not connected to TASK_ID, right? &lt;/P&gt;&lt;P&gt;So assigning values to these fields will not filter on TASK_ID values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You seem to have multiple date fields in your island table. Which one do you want to use for your filter, how does the field values look like and which field could be a corresponding field in your calendar table with the same format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this, I would recommend linking your new table with the others. If you encounter something like 'it hangs when I try to JOIN', your join may miss common field names and create a cartesian join. I would try to fix this instead of using a data island. But that's my 0.02 €.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 23:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110053#M750907</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-11-08T23:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110054#M750908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Stefan,&lt;/P&gt;&lt;P&gt;Thanks. This was Developed by someone else and I am adding New tab of task. when I am adding the % Key only and % DayID it works but when I add %Facilities or the whole Table it stops as it is cartesian Join which is already created . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled-3.png" class="jive-image image-2" height="329" src="https://community.qlik.com/legacyfs/online/218001_Untitled-3.png" style="height: 328.548px; width: 420px;" width="420" /&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;So My next idea is to make data island of task and all below field of Task uses DUE_DATE as Reporting Month.&lt;/P&gt;&lt;P&gt;So I am thinking lets say Scheduled Task-I expression to be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;COUNT({&amp;lt;PRIORITY ={'Tier I'},Year = p(Year), Month = p(MonthName),Quarter = p(Quarter)&amp;gt;} DISTINCT TASK_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217999_Untitled.png" style="height: 149px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Do you think I will first Join :&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;Task_DayID as %DayId&lt;/P&gt;&lt;P&gt;Resident TASK;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;P&gt;Niha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 15:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110054#M750908</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2018-11-09T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110055#M750909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to link multiple tables by multiple key fields, this will create a synthetic key table. If the number of linking key fields differ from table to table, then this will create nested synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Synthetic keys, especially the nested ones, are hard to validate, it's recommended to create a explicite combined key / link table instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or consider concatenating your tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are discussions in the forum that discuss these topics, search for Synthetic Keys. Like &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3064"&gt;Synthetic Keys&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back to your set analysis: as I tried to explain, if the calendar fields left of the equal signs are not part of your data island table, then these won't filter your TASK_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would need to decide which of your date fields need to be filtered, and then search for a compatible field in your calendar table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming formats are matching and fields do exist, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count( {&amp;lt;PRIORITY = {'Tier I'}. DUE_DATE = p(CalendarTable.Date)&amp;gt;} TASK_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 16:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110055#M750909</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-11-09T16:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: P() set analysis for the discussed example</title>
      <link>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110056#M750910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amazing!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Count( {&amp;lt;PRIORITY = {'Tier I'}, DUE_DATE = p(%DayId)&amp;gt;} TASK_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2018 22:07:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/P-set-analysis-for-the-discussed-example/m-p/110056#M750910</guid>
      <dc:creator>niharika1234</dc:creator>
      <dc:date>2018-11-09T22:07:20Z</dc:date>
    </item>
  </channel>
</rss>

