<?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 how to create intersecting sets ni dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165954#M38088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first you have to identify the buyers bought something within your timeframey&lt;/P&gt;&lt;P&gt;Therefore i would create a calendar for each Special/extraspecial day with a flag for Special and ExtraSpecial.&lt;/P&gt;&lt;P&gt;Then create all days within the calendar are not special/extraspecial with a regular flag.&lt;/P&gt;&lt;P&gt;Join that calendar to jour sells. so you will have one or more flags for each sell.&lt;/P&gt;&lt;P&gt;Load all sells group by byer and year and find out if he has flag (if you use a 1 as a flag you could use the aggregation MAX() ). Also keep the year.&lt;/P&gt;&lt;P&gt;Reload that table into an other table and calcuzlate your dimension (could also be done while aggregation)&lt;/P&gt;&lt;P&gt;IF(Regular=1, 'Regular', IF(Special=1, IF (Extraspecial=1,"Special &amp;amp; Extraspecial', 'Special'), IF(Extraspecial=1,'Extraspecial', 'No Buyer')) AS ByerDimension&lt;/P&gt;&lt;P&gt;(be aware, i mention you using the Selling Table, so the situation "No buyer" should not occur. To find out who has nothing bought you have to expand that logic)&lt;/P&gt;&lt;P&gt;Than create a additionally table out of that aggregiated table with a link to your byers. Because you have keeped the year you could also use that as a dimension.&lt;/P&gt;&lt;P&gt;Hope that helps, best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Aug 2010 23:49:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-20T23:49:28Z</dc:date>
    <item>
      <title>how to create intersecting sets ni dimension</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165953#M38087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;I am finding out solution for below mentioned problem , hope somebody can help me out :&lt;/P&gt;&lt;P&gt;I have secenario where i need to create one dimension to indicate nature of buyer.&lt;/P&gt;&lt;P&gt;"Nature of buyer" categories are :&lt;/P&gt;&lt;P&gt;1) Regular : Who is purcahsing througout the year .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Special : Who is purcahsing "only in festive periods" ( i.e. Jan, Oct ,Dec of every Year )&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;3) ExtraSpecial : Who is purcahsing "only during promotions" ( i.e. 15th Jan - 15th Feb &amp;amp; 15 Jul - 15 th Aug of every Year )&lt;/P&gt;&lt;P&gt;Now if you look into above categories "Spcial" &amp;amp; "Extraspecial" are paritally overlapping with each other , but still its OK to show member in both brackets if condition matches .&lt;/P&gt;&lt;P&gt;My requirement is to show in table chart "Mbr count" against these categories &amp;amp; on selecting particular category i must get member details (which will be basic contact info abt members).&lt;/P&gt;&lt;P&gt;I am really worried abt getting parital intersction sets in sigle dimension ?&lt;/P&gt;&lt;P&gt;Looking for best possible answer ( example will be of great support)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bhushan N&lt;/P&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;&lt;P&gt;Bhushan N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 12:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165953#M38087</guid>
      <dc:creator />
      <dc:date>2010-08-18T12:30:27Z</dc:date>
    </item>
    <item>
      <title>how to create intersecting sets ni dimension</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165954#M38088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;first you have to identify the buyers bought something within your timeframey&lt;/P&gt;&lt;P&gt;Therefore i would create a calendar for each Special/extraspecial day with a flag for Special and ExtraSpecial.&lt;/P&gt;&lt;P&gt;Then create all days within the calendar are not special/extraspecial with a regular flag.&lt;/P&gt;&lt;P&gt;Join that calendar to jour sells. so you will have one or more flags for each sell.&lt;/P&gt;&lt;P&gt;Load all sells group by byer and year and find out if he has flag (if you use a 1 as a flag you could use the aggregation MAX() ). Also keep the year.&lt;/P&gt;&lt;P&gt;Reload that table into an other table and calcuzlate your dimension (could also be done while aggregation)&lt;/P&gt;&lt;P&gt;IF(Regular=1, 'Regular', IF(Special=1, IF (Extraspecial=1,"Special &amp;amp; Extraspecial', 'Special'), IF(Extraspecial=1,'Extraspecial', 'No Buyer')) AS ByerDimension&lt;/P&gt;&lt;P&gt;(be aware, i mention you using the Selling Table, so the situation "No buyer" should not occur. To find out who has nothing bought you have to expand that logic)&lt;/P&gt;&lt;P&gt;Than create a additionally table out of that aggregiated table with a link to your byers. Because you have keeped the year you could also use that as a dimension.&lt;/P&gt;&lt;P&gt;Hope that helps, best regards&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Aug 2010 23:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165954#M38088</guid>
      <dc:creator />
      <dc:date>2010-08-20T23:49:28Z</dc:date>
    </item>
    <item>
      <title>how to create intersecting sets ni dimension</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165955#M38089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's one possibility if I understood. I'm guessing you only want those three categories, and for some buyers to be in two categories. I'm guessing you don't actually want a "Special &amp;amp; Extraspecial" category.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;BuyerCategories:&lt;BR /&gt;LOAD&lt;BR /&gt; Buyer&lt;BR /&gt;,subfield(if(BC2='ExtraSpecial',BC2&amp;amp;if(BC1='Special',':'&amp;amp;BC1),BC1),':') as BuyerCategory&lt;BR /&gt;;&lt;BR /&gt;LOAD&lt;BR /&gt; Buyer&lt;BR /&gt;,if(min(match(month(Date),'Jan','Oct','Dec')),'Special','Regular') as BC1&lt;BR /&gt;,if(min((month(Date)='Jan' and day(Date)&amp;gt;=15)&lt;BR /&gt; or (month(Date)='Feb' and day(Date)&amp;lt;=15)&lt;BR /&gt; or (month(Date)='Jul' and day(Date)&amp;gt;=15)&lt;BR /&gt; or (month(Date)='Aug' and day(Date)&amp;lt;=15)),'ExtraSpecial') as BC2&lt;BR /&gt;RESIDENT Sales&lt;BR /&gt;GROUP BY Buyer&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;The subfield() is what gives you an extra row for the Buyer when they're in two categories. Then just count(distinct Buyer) with a dimension of BuyerCategory. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Aug 2010 01:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165955#M38089</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-08-21T01:50:05Z</dc:date>
    </item>
    <item>
      <title>how to create intersecting sets ni dimension</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165956#M38090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John for your inputs ,let me try using this approach in my doc&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhushan N&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 08:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-create-intersecting-sets-ni-dimension/m-p/165956#M38090</guid>
      <dc:creator />
      <dc:date>2010-08-30T08:51:38Z</dc:date>
    </item>
  </channel>
</rss>

