<?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 Expression in a pivot table help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212135#M66187</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;OK, so the way I did it in a straight table was to add the following expression:&lt;/P&gt;&lt;P&gt;=Sum(Total HoursWorked)&lt;/P&gt;&lt;P&gt;Obviously you don't want that expression so I hid the column in the presentation tab.&lt;/P&gt;&lt;P&gt;This seems to work for a straight table, not sure about how to do the same thing with other chart types but worth investigating on your side.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jan 2010 09:47:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-18T09:47:15Z</dc:date>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212128#M66180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have two tables:&lt;/P&gt;&lt;P&gt;employee timesheet with employee, role, date , date year, date month and hours worked on that date&lt;/P&gt;&lt;P&gt;standard hours - date and standard hours for that date&lt;/P&gt;&lt;P&gt;I want to show both figures in a pivot table pivoted by role, employee, year, month - whith each cell showing me the amount of hours the employee worked that month and the number of standard hours for that month (basically the standard hours figure is the same for all employees)&lt;/P&gt;&lt;P&gt;I have Sum(HoursWorked) to show the hours worked, and SUM(StandardHours) to show the standard hours&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far so good&lt;/P&gt;&lt;P&gt;The problem begings on those months where a certain employee had no records at all. For some reason, for those months the standard hours figure is showing zero as well, even though it should show the figure from the standard hours table, which exists&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong, or what should I change to make it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 12:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212128#M66180</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-01-14T12:03:44Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212129#M66181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post an example of your app so I can take a look?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 12:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212129#M66181</guid>
      <dc:creator />
      <dc:date>2010-01-14T12:37:50Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212130#M66182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The app is quite big so I dont know how to put it here - but the scenario is quite simple and happens in all charts - for instance, straight table:&lt;/P&gt;&lt;P&gt;Ill try to rephrase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1 - Date, HoursStandard (single record per date)&lt;/P&gt;&lt;P&gt;Table2 - Date, Employee, HoursWorked (multiple records per single date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display a chart with 4 fields - employee, date, SUM(HoursWorked), SUM(HoursStandard).&lt;/P&gt;&lt;P&gt;The thing is, that whenever I dont have a record on a certain date for a certain employee in Table2, I still want to show that line in my straight table :&lt;/P&gt;&lt;P&gt;Employee A, 12/1/2010, HoursWorked=0, StandardHours=9&lt;/P&gt;&lt;P&gt;For some reason, if HoursWorked=0, the record doesn't show at all..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 16:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212130#M66182</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-01-14T16:08:21Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212131#M66183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at the attached, I did nothing special so this was why I was asking for a mock-up, because I can't see what could have gone wrong.&lt;/P&gt;&lt;P&gt;Unless of course you tell me that the attached is not what you are after.&lt;/P&gt;&lt;P&gt;Let me know,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 16:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212131#M66183</guid>
      <dc:creator />
      <dc:date>2010-01-14T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212132#M66184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In the attached file - A.Jones appears only in 5 lines - for the dates he has data. I want him to appear in all 12 lines of the Standard table.. sort of right join, with 0 next to his hours..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 16:30:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212132#M66184</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-01-14T16:30:49Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212133#M66185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In that case you will probably need to create a single table from your two tables, probably using a full join so that your single table holds dates and employees. What is the source of your data, if it is SQL then I might be able to help with the query?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 10:18:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212133#M66185</guid>
      <dc:creator />
      <dc:date>2010-01-15T10:18:32Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212134#M66186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;It is SQL Server, and I know how to create a query to bring all data as a single table on the db level, but I was wondering how this can be acheived using the existing data model. This is due to the fact that the model itself holds several other tables associated with those ones, and logically this is the right table structure.. so I am wondering whether there is some way to solve this on a display level..&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2010 17:22:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212134#M66186</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-01-17T17:22:12Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212135#M66187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;OK, so the way I did it in a straight table was to add the following expression:&lt;/P&gt;&lt;P&gt;=Sum(Total HoursWorked)&lt;/P&gt;&lt;P&gt;Obviously you don't want that expression so I hid the column in the presentation tab.&lt;/P&gt;&lt;P&gt;This seems to work for a straight table, not sure about how to do the same thing with other chart types but worth investigating on your side.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 09:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212135#M66187</guid>
      <dc:creator />
      <dc:date>2010-01-18T09:47:15Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212136#M66188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doesn't work&lt;/P&gt;&lt;P&gt;never mind, I give up and handle it on the data load level&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 15:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212136#M66188</guid>
      <dc:creator>m4u</dc:creator>
      <dc:date>2010-01-18T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212137#M66189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Based on the data model, I do not think that you will be able to see the display of records on the dates the employee that not worked. The plain simple fact being that the standard hours table does not have any employee name so there is no association for it to show the standard hours against a particular date where employee is a dimension.&lt;/P&gt;&lt;P&gt;What you could do is to create load distinct of employees from your work table and create another table with standard hours for each employee for each date. My thoughts are that this is the only way it will show the standard hours for an employee for dates where he/she has not worked.&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 15:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212137#M66189</guid>
      <dc:creator />
      <dc:date>2010-01-18T15:46:35Z</dc:date>
    </item>
    <item>
      <title>Expression in a pivot table help</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212138#M66190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did something to identify hours worked by month to identify employees that did not input hours total or partially in the script&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt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t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;&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;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;mindate:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;min&lt;/B&gt;(&lt;B&gt;num&lt;/B&gt;(Fecha)) &lt;B&gt;as&lt;/B&gt; &lt;P&gt;fechamin&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSP_TimesheetActual;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;replace&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;LET&lt;/B&gt; varMinDate = &lt;B&gt;Num&lt;/B&gt;(&lt;B&gt;Peek&lt;/B&gt;('fechamin', 0, 'mindate')); &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LET&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;varMaxDate = &lt;B&gt;floor&lt;/B&gt;( &lt;B&gt;Num&lt;/B&gt;(&lt;B&gt;monthend&lt;/B&gt;(&lt;B&gt;Today&lt;/B&gt;()),0)); &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;//LET varMaxDate = Num(Today());&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;//Create all fullmpnths in the range from varMinDate to varMaxDate, this is to incude accumulations in months without enrollments&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;TempCal:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;LOAD&lt;/P&gt;&lt;I&gt;&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;/I&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;$(varMinDate)&lt;/P&gt;&lt;B&gt;&lt;I&gt;&lt;/I&gt;&lt;/B&gt;&lt;P style="font-style: italic; font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;+&lt;B&gt;Iterno&lt;/B&gt;()-1 &lt;B&gt;AS&lt;/B&gt; Num &lt;P&gt;,&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Date&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(&lt;B&gt;&lt;I&gt;$(varMinDate)&lt;/I&gt;&lt;/B&gt;+&lt;B&gt;Iterno&lt;/B&gt;()-1) &lt;B&gt;AS&lt;/B&gt; &lt;P&gt;TempDate&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;AUTOGENERATE&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;1 &lt;B&gt;WHILE&lt;/B&gt; &lt;B&gt;&lt;I&gt;$(varMinDate)&lt;/I&gt;&lt;/B&gt;+&lt;B&gt;Iterno&lt;/B&gt;()-1&amp;lt;= &lt;B&gt;&lt;I&gt;$(varMaxDate)&lt;/I&gt;&lt;/B&gt; &lt;P&gt;;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;//Building the master calendar with most date dimensions&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;table_aux:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;distinct&lt;/B&gt; &lt;B&gt;date&lt;/B&gt;(TempDate, 'YYYY-MM-DD') &lt;B&gt;as&lt;/B&gt; &lt;P&gt;Fechavinc_AUX&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;TempCal &lt;B&gt;order&lt;/B&gt; &lt;B&gt;by&lt;/B&gt; TempDate &lt;P&gt;Asc;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;Drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;table&lt;/B&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;TempCal;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;// take all periodo and all AUDAFFILIATIONNUMBER&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;join&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;distinct&lt;/B&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;recurso1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;as&lt;/B&gt; &lt;P&gt;recurso_AUX&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MSP_TimesheetResource&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;//order by keyusermonth,Fecha&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;where&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;not&lt;/B&gt; &lt;B&gt;exists&lt;/B&gt;(R1, recurso1) &lt;P&gt;;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;auxtable&lt;/P&gt;&lt;P&gt;&lt;I&gt;:&lt;/I&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fechavinc_AUX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;AS&lt;/B&gt; creationdate &lt;P&gt;,&lt;/P&gt;&lt;P&gt;recurso_AUX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;AS&lt;/B&gt; &lt;P&gt;recurso&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;table_aux &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;order&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;by&lt;/B&gt; recurso_AUX , &lt;P&gt;Fechavinc_AUX;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;left&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;join&lt;/P&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;P&gt;recurso&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;creationdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;sum&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(Horas) &lt;B&gt;as&lt;/B&gt; &lt;P&gt;cantidad&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;timesheet1 &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;where&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;flagappr=1 &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;group&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;by&lt;/B&gt; recurso , creationdate &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;order&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;by&lt;/B&gt; recurso , creationdate &lt;P&gt;;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;//store auxtable into auxtable.qvd;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;//drop table table_aux;&lt;/P&gt;&lt;I&gt;&lt;/I&gt;&lt;P style="font-style: italic"&gt;horasporusermes:&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;distinct&lt;/B&gt;&lt;/P&gt;&lt;P&gt;recurso&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;left&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(creationdate,10) &lt;B&gt;as&lt;/B&gt; Fecha &lt;P&gt;,&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;if&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;(&lt;B&gt;isnull&lt;/B&gt;(cantidad) &lt;B&gt;or&lt;/B&gt; cantidad&amp;lt;1,0,cantidad) &lt;B&gt;AS&lt;/B&gt; Cantidademp &lt;P&gt;,&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;//numsum (if ( AUDAFFILIATIONNUMBER = PEEK(AUDAFFILIATIONNUMBER) , rangesum ( cantidad , peek (acumactiv1)) , cantidad)) as acumactiv1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;rangesum&lt;/B&gt; (&lt;B&gt;if&lt;/B&gt; ( recurso = &lt;B&gt;previous&lt;/B&gt;(recurso) &lt;B&gt;and&lt;/B&gt; &lt;B&gt;monthname&lt;/B&gt;(creationdate)=&lt;B&gt;previous&lt;/B&gt;(&lt;B&gt;monthname&lt;/B&gt;(creationdate)) , &lt;B&gt;rangesum&lt;/B&gt; ( cantidad , &lt;B&gt;peek&lt;/B&gt; (acumactiv1)) , cantidad)) &lt;B&gt;as&lt;/B&gt; &lt;P&gt;acumactiv1&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;resident&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;auxtable &lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;order&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;by&lt;/B&gt; recurso , creationdate &lt;P&gt;;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;table&lt;/B&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;auxtable;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;drop&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;table&lt;/B&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;table_aux;&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Feb 2010 20:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-in-a-pivot-table-help/m-p/212138#M66190</guid>
      <dc:creator>hectorgarcia</dc:creator>
      <dc:date>2010-02-09T20:27:10Z</dc:date>
    </item>
  </channel>
</rss>

