<?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 aggr function and weekly dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275618#M1195530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Axon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a licensed QlikView user it's not a problem to open documents created with personal edition, so that's fine.&lt;/P&gt;&lt;P&gt;When it comes to confidentiality of the data there's a tab under the Settings &amp;gt; Document Properties called Scrambling, where you can scramble any sensitive fields, like customer names etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jun 2011 04:34:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-09T04:34:22Z</dc:date>
    <item>
      <title>aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275615#M1195527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) i have been trying to figure out the correct way to use aggr but i seem to be either getting wrong values or invalid values(causing no data to be displayed) in charts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 3 columns: columnA columnB and lastUpdated...&lt;/P&gt;&lt;P&gt;i'm supposed to sum(columnA) and divide it by sum(columnB) to get a % and they have to be aggregated by days&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;aggr(sum(columnA)/sum(columnB), lastUpdated)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) i have also been trying to figure out how to list the dimension in working weeks with the latest/current week right at the end of the axis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for e.g., if is currently week 3 of the year, the dimensions would be smth like (start) ... ... 46 48 49 50 51 52 1 2 3 (end)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the chart works fine if i simply use the lastUpdated column, which is a Date type. however, i only want to see the week so i did a week(lastUpdated) but in the end i only got a single 53 in the dimension...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oh by the way, im using qv10 personal edition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance for any help! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 04:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275615#M1195527</guid>
      <dc:creator />
      <dc:date>2011-06-09T04:16:39Z</dc:date>
    </item>
    <item>
      <title>aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275616#M1195528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Axon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you go ahead and attach your .qvw file it would be easier to try and figure out. The expression might fail depending on the expressions making up ColumnA and ColumnB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 04:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275616#M1195528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-09T04:24:23Z</dc:date>
    </item>
    <item>
      <title>aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275617#M1195529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Johannes thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm using personal edition so unless you are using the server edition you won't be able to open my file right? and besides there might be some confidentiality issues with my data, is there a way to share my stuffs w/o leaking confidential stuffs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oh and some of the values have zeroes, maybe that was y the division may not work for them. is there any workarounds to detect the zeroes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 04:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275617#M1195529</guid>
      <dc:creator />
      <dc:date>2011-06-09T04:31:52Z</dc:date>
    </item>
    <item>
      <title>aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275618#M1195530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Axon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a licensed QlikView user it's not a problem to open documents created with personal edition, so that's fine.&lt;/P&gt;&lt;P&gt;When it comes to confidentiality of the data there's a tab under the Settings &amp;gt; Document Properties called Scrambling, where you can scramble any sensitive fields, like customer names etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 04:34:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275618#M1195530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-09T04:34:22Z</dc:date>
    </item>
    <item>
      <title>aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275619#M1195531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm able to scamble the data but seem to be unable to upload the file, the progress bar wasn't moving for a long time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'll try to explain what what those 3 columns are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the values of 6 rows are as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;columnA columnB lastUpdated&lt;/P&gt;&lt;P&gt;100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/9/2011&lt;/P&gt;&lt;P&gt;250&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 600&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/9/2011&lt;/P&gt;&lt;P&gt;400&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/9/2011&lt;/P&gt;&lt;P&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/7/2011&lt;/P&gt;&lt;P&gt;25&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 500&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/7/2011&lt;/P&gt;&lt;P&gt;50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6/7/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so i'm supposed to (100+250+400)/(500+600+500) for 6/9/2011 and (0+25+50)/(100+500+1000) for 6/7/2011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so is aggr(sum(columnA)/sum(columnB), lastUpdated) the right way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you also help me with the 2nd question regarding the weekly dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 05:54:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275619#M1195531</guid>
      <dc:creator />
      <dc:date>2011-06-09T05:54:29Z</dc:date>
    </item>
    <item>
      <title>aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275620#M1195532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a straight table?&lt;/P&gt;&lt;P&gt;What are the dimensions?&lt;/P&gt;&lt;P&gt;What is the expression for Column A/B? Sum(FieldX)?&lt;/P&gt;&lt;P&gt;What is the expression for lastUpdated?&lt;/P&gt;&lt;P&gt;Or are they just three fields in the document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 06:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275620#M1195532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-09T06:08:28Z</dc:date>
    </item>
    <item>
      <title>aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275621#M1195533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the expressions for Column A/B and lastUpdated are just themselves, they were not calculated values but just values extracted from the database...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is the final % from sum(A)/sum(B) that matters...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dimension for the daily trends chart is,&lt;/P&gt;&lt;P&gt; =if(lastUpdated&amp;gt;=Today()-30 and lastUpdated&amp;lt;=Today(),Day(lastUpdated))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the dimension for the weekly trends chart is,&lt;/P&gt;&lt;P&gt;=if(lastUpdated&amp;gt;=Today()-365 and lastUpdated&amp;lt;=Today(), Week(lastUpdated))&lt;/P&gt;&lt;P&gt;other than the same problem the daily trends chart has, the weekly chart also does not list the week dimension with the current/latest week at the right end of the axis...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 06:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275621#M1195533</guid>
      <dc:creator />
      <dc:date>2011-06-09T06:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: aggr function and weekly dimension</title>
      <link>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275622#M1195534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of suggestions, in your load script do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; columnA,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; columnB,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastUpdated,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week(lastUpdated) as updateWeek,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month(lastUpdated) as updateMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(lastUpdated) as updateYear&lt;/P&gt;&lt;P&gt;from sourcetable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your chart, use set analysis instead of the aggr() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" frame="void" rules="none"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="left" height="20" width="440"&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Sum({$&amp;lt;updateYear={$(=max(year(updateYear)))}&amp;gt;} columnA)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Sum({$&amp;lt;updateYear={$(=max(year(updateYear)))}&amp;gt;} columnB)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;Now, add the updateYear, Month, &amp;amp; Week fields to list boxes to allow users to dynamically select their time period. Also you can use&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;Sum({$&amp;lt;updateYear={$(=max(year(updateYear))-1)}&amp;gt;} columnB)&lt;/SPAN&gt; to force the calculation to look at the same data from one year ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--edit: you can also use the updateYear etc... fields as dimensions within your charts, or add them to a cyclical group and use that as your dimension to easily switch between them. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 22:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/aggr-function-and-weekly-dimension/m-p/275622#M1195534</guid>
      <dc:creator />
      <dc:date>2011-06-09T22:29:02Z</dc:date>
    </item>
  </channel>
</rss>

