<?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: Help with Dimensions &amp; Expresions on a Pivot Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267502#M585086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A typical error for calculated dimensions is if you use an aggregation function like sum() without putting it in an aggr().&amp;nbsp; So it's possible you could just fix the calculated dimension in some way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a different way to approach the problem, your calculated dimension could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=valuelist('Old Customers','New Customers')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the expression, do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(valuelist('Old Customers','New Customers')='Old Customers', expression for old customers, expression for new customers)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 22:56:30 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2011-08-11T22:56:30Z</dc:date>
    <item>
      <title>Help with Dimensions &amp; Expresions on a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267500#M585084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;First, i must say i'm a newbie with QV. Sorry if i can't explain myself in an appropiate way. &lt;/P&gt;&lt;P&gt;In addition, i'm not completely good with English. I'm from Argentina. What a challenge for you all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to explain what i'm trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with orders.. it means:&lt;/P&gt;&lt;P&gt;a customer id, an order_date, an order_id, a product_id, quantity, etc.. for a couple of years.&lt;/P&gt;&lt;P&gt;In addition, i have a calendar vinculated..&lt;/P&gt;&lt;P&gt;In the calendar, i can select just one year, and just one month. One period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, i wanna clasificate customers in 2 groups:&lt;/P&gt;&lt;P&gt;old customers: those who has orders in the last six months (depending on the month/year selected)&lt;/P&gt;&lt;P&gt;"new" customers: those who hasnt orders in the last six months (depending on the month/year selected)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, what i'm trying to do is a pivot table with, for each day in the month, how many diferent customers have placed the first order in the month (in other words, how many customers has been "activated" in that day of the month. Just the first order of a customer in the month counts as an activation), separated by Old and New customers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like that.&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: 100%; 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;Type&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;01-Mar-2011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;02-Mar-2011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;03-Mar-2011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;04-Mar-2011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;TH align="center" style="background-color: #6690bc;" valign="middle"&gt;&lt;SPAN style="color: #ffffff;"&gt;&lt;STRONG&gt;05-Mar-2011&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Old Customers&lt;/TD&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;201&lt;/TD&gt;&lt;TD&gt;156&lt;/TD&gt;&lt;TD&gt;187&lt;/TD&gt;&lt;TD&gt;133&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;New Customers&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made an expression to make the first classification (old vs new, depending on mon/year selected), but i can't use it as a calculated dimension (it gives me an error). I don't know if make an expression is the best approach for that... And later i have to solve not only if is old or new regarding the previous 6 months of the period selected, i have also to clasificate if there are activations or not for that day in the current period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please send some suggestions to help me out?&lt;/P&gt;&lt;P&gt;Samples, how-to's, etc.. any comment will be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 15:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267500#M585084</guid>
      <dc:creator />
      <dc:date>2011-08-11T15:16:57Z</dc:date>
    </item>
    <item>
      <title>Help with Dimensions &amp; Expresions on a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267501#M585085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you send me any sample data file i'll do it &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;thanks &lt;/P&gt;&lt;P&gt;Meher&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 22:16:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267501#M585085</guid>
      <dc:creator />
      <dc:date>2011-08-11T22:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Dimensions &amp; Expresions on a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267502#M585086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A typical error for calculated dimensions is if you use an aggregation function like sum() without putting it in an aggr().&amp;nbsp; So it's possible you could just fix the calculated dimension in some way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a different way to approach the problem, your calculated dimension could be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;=valuelist('Old Customers','New Customers')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the expression, do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;if(valuelist('Old Customers','New Customers')='Old Customers', expression for old customers, expression for new customers)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 22:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267502#M585086</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-08-11T22:56:30Z</dc:date>
    </item>
    <item>
      <title>Help with Dimensions &amp; Expresions on a Pivot Table</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267503#M585087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Meher: Thank you! , i'll try first John's suggestion. If i'm in troubles to get results, i'll upload a file.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John: Thanks for the tip! I didn't now such function valuelist, looks like a better way. I'll try and let you know. Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 19:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Dimensions-Expresions-on-a-Pivot-Table/m-p/267503#M585087</guid>
      <dc:creator />
      <dc:date>2011-08-12T19:03:11Z</dc:date>
    </item>
  </channel>
</rss>

