<?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 Dimension Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445115#M166041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;i've got a question about this situation, i have 2 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 20%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CustomerId&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ActivationDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ActivationYear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ActivationMonth&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 20%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Ticket&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CustomerId&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TicketDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TicketYear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TicketMonth&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2 tables are linked via CustomerId, and i have to calculate a pivot table with 2 particular expressions:&lt;/P&gt;&lt;P&gt;The first one is simple, count the number of tickets per date, which is simple using TicketYear,Month and Week as dimension and counting the TicketId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the second expression is required to calculate the number of customers which have been ACTIVATED during the period of "Ticket Creation" i'm looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that if i'm looking at the number of tickets created on the 25th week of the year, i need to have on the second expression the number of customers activated on the same week, but the dimension i have to use are still the ones related to the ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't split in 2 pivot tables using different dimension, cause it's required and needed to have all in the same pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone ever experiences something to accomplish this&amp;nbsp; without messing up the tables structure in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 15:37:23 GMT</pubDate>
    <dc:creator>lucas4bi</dc:creator>
    <dc:date>2012-10-23T15:37:23Z</dc:date>
    <item>
      <title>Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445115#M166041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;i've got a question about this situation, i have 2 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 20%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CustomerId&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ActivationDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ActivationYear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ActivationMonth&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE border="1" cellpadding="3" cellspacing="0" class="jiveBorder" style="width: 20%; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;Ticket&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CustomerId&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TicketDate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TicketYear&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TicketMonth&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 2 tables are linked via CustomerId, and i have to calculate a pivot table with 2 particular expressions:&lt;/P&gt;&lt;P&gt;The first one is simple, count the number of tickets per date, which is simple using TicketYear,Month and Week as dimension and counting the TicketId.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the second expression is required to calculate the number of customers which have been ACTIVATED during the period of "Ticket Creation" i'm looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that if i'm looking at the number of tickets created on the 25th week of the year, i need to have on the second expression the number of customers activated on the same week, but the dimension i have to use are still the ones related to the ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't split in 2 pivot tables using different dimension, cause it's required and needed to have all in the same pivot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone ever experiences something to accomplish this&amp;nbsp; without messing up the tables structure in the script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 15:37:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445115#M166041</guid>
      <dc:creator>lucas4bi</dc:creator>
      <dc:date>2012-10-23T15:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445116#M166042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One possible solution is to use a data island, a table that just holds a calendar (Date, Week, Month, Year) for the period you are looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use this data island as time dimensions. In your expressions, you'll need a condition to check your ticket dates vs. the data island date resp. the activation date vs. the data island date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(if(TicketDate = IslandDate,TicketDate))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count(if(ActivationDate = IslandDate, ActivationDate))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where your dimensions are IslandYear, IslandWeek, IslandDate&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also Henric's recent design blog post on how to build calendar tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 16:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445116#M166042</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-23T16:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445117#M166043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had already created the IslandTable, but i wasn't using it properly on this specific object.&lt;/P&gt;&lt;P&gt;Thanks to your post now i see how easily i can solve this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 16:12:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445117#M166043</guid>
      <dc:creator>lucas4bi</dc:creator>
      <dc:date>2012-10-23T16:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445118#M166044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another idea might be to create a concatenated table from your two tables, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE:&lt;/P&gt;&lt;P&gt;CustomerID, Date, DateType&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where DateType is either Activation or Ticket, and link Date field to a master calendar.&lt;/P&gt;&lt;P&gt;Then you might be able to use this master calendar fields as dimension and a set expression to filter the count of Tickets or Activations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;DateType = {Activation}&amp;gt;} CustomerID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=count({&amp;lt;DateType = {Ticket} &amp;gt;} CustomerID)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 17:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem/m-p/445118#M166044</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-23T17:01:59Z</dc:date>
    </item>
  </channel>
</rss>

