<?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: Aggregation / Counting in a script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662053#M448889</link>
    <description>&lt;P&gt;I've set it up as a separate table &amp;amp; concatenated it with my FACT table.&lt;/P&gt;&lt;P&gt;It has worked in so far as there is now a populated UnitSales field, but it doesn't seem to have taken the If(Account ='6101') part into account - i.e. it has populated for data outside this code also.&lt;/P&gt;&lt;P&gt;Not the end of the world - I can use set analysis to limit this in my chart.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 11:59:57 GMT</pubDate>
    <dc:creator>anthony_kinsell</dc:creator>
    <dc:date>2020-01-02T11:59:57Z</dc:date>
    <item>
      <title>Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661979#M448880</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having some trouble getting the script correct to create a sales number per month from my data.&lt;/P&gt;&lt;P&gt;Basically I need to count the distinct 'TenantRef' in the data where the 'Account' is 6101.&lt;/P&gt;&lt;P&gt;I know this should be simple but keep getting invalid function errors - can anyone help?&lt;/P&gt;&lt;P&gt;I've tried the following type of script:&lt;/P&gt;&lt;P&gt;If(Account = '6101', Count(DISTINCT TenantRef)) as UnitSales,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661979#M448880</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-02T10:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661986#M448881</link>
      <description>&lt;P&gt;maybe this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT If(Account = '6101',TenantRef)) as UnitSales,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661986#M448881</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-01-02T10:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661992#M448882</link>
      <description>&lt;P&gt;Thanks but unfortunately not - still coming up as 'Invalid Expression' when I reload the script&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661992#M448882</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-02T10:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661996#M448883</link>
      <description>&lt;P&gt;this should work.&lt;/P&gt;&lt;P&gt;Can you share your complete Load Statement?&lt;/P&gt;&lt;P&gt;- Maybe you are missing the group by statement?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1661996#M448883</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-01-02T10:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662002#M448884</link>
      <description>&lt;P&gt;// Load the income from Qube&lt;BR /&gt;IncomeTemp:&lt;BR /&gt;LOAD&lt;BR /&gt;Entity as OwnerRef,&lt;BR /&gt;ApplyMap('OwnerMap',Project) as OwnerName,&lt;BR /&gt;IF(Project = 'ZFAJ/STP05X', 'FAJ/STP05',&lt;BR /&gt;IF(Entity = 'MRC' and TenantName = 'Hansfield Investments Ltd' , 'MRC13',&lt;BR /&gt;IF(Entity = 'QUA' and TenantName = 'J7 Co-Ownership' , 'QUA/CN/CBLK4',&lt;BR /&gt;Project))) as PropertyRef,&lt;BR /&gt;IF(Entity = 'ADL', 'Hogan Place'&lt;BR /&gt;,ApplyMap('PropNameMap', Project, 'MISSING')) as Property ,&lt;BR /&gt;UnitRef,&lt;BR /&gt;FundType,&lt;BR /&gt;Alt_Name,&lt;BR /&gt;If(FundType = 'Proforma', Mid(FundDesc,10),&lt;BR /&gt;If(FundType = 'Proforma Constr', Mid(FundDesc,10),&lt;BR /&gt;If(FundType = 'Proforma Rent', Mid(FundDesc,15),&lt;BR /&gt;IF(Project = 'HAN01' and FundDesc = 'DO NOT USE' , 'Phase 1 (37 Units)',&lt;BR /&gt;IF(Project = 'HAN01' and FundDesc = 'P 1.1 +1.2 (15 units)' , 'Phase 1 (37 Units)',&lt;BR /&gt;IF(Entity = 'MRC' and TenantName = 'Hansfield Investments Ltd' , 'New Homes Overheads',&lt;BR /&gt;IF(Entity = 'QUA' and TenantName = 'J7 Co-Ownership', 'City North Commercial Block 4'&lt;BR /&gt;,FundDesc))))))) as FundDesc,&lt;BR /&gt;QubePhase as FundRef,&lt;BR /&gt;QubeCode,&lt;BR /&gt;QubePhase,&lt;BR /&gt;TenantRef,&lt;BR /&gt;Count(DISTINCT If(Account = '6101', TenantRef)) as UnitSales,&lt;BR /&gt;If(Account = '6107' and Entity = 'MGH', 'Residential Sales',&lt;BR /&gt;If(Account = '6107' and Entity = 'HAN', 'Residential Sales',&lt;BR /&gt;If(Account = '6107' and Match(Entity, 'SR5', 'AHL'), 'Land Sales',&lt;BR /&gt;If(Account = '6107' and Match(Project, 'QUA/CN/IND4','QUA/CN/IND3','CNT/CN/CBLK3','QUA/CN/CBLK3'), 'Commercial Sales',&lt;BR /&gt;If(Account = '6107' and Project = 'CNT/CN/HO', 'Land Sales',&lt;BR /&gt;If(Account = '6107' and Match(Project, 'APL05','CNT/CN/IND3'), 'Miscellaneous Income',&lt;BR /&gt;If(Project = 'MRC13' and FundHeading = 'Rent and Admin Income','Management Fee Income',&lt;BR /&gt;FundHeading))))))) as FundHeading,&lt;BR /&gt;IF(Project = 'APL03',ApplyMap('AptsTenantMap',TenantRef),&lt;BR /&gt;IF(Project = 'SR201',ApplyMap('AptsTenantMap',TenantRef),&lt;BR /&gt;IF(Project = 'SR202',ApplyMap('AptsTenantMap',TenantRef),&lt;BR /&gt;IF(Project = 'SR215',ApplyMap('AptsTenantMap',TenantRef)&lt;BR /&gt;,TenantName)))) as TenantName,&lt;BR /&gt;TenantType,&lt;BR /&gt;IF(FundHeading = '* Sales',UnitDescription,&lt;BR /&gt;ChargeDescription) as ChargeDescription,&lt;BR /&gt;Account as OrgQubeAccount,&lt;BR /&gt;If(Match(Account, '6107', '6101') and Match(Project, 'MRD/DUN04', 'MRD/DUN05', 'MRD/RAT03', 'MRD/DUN02', 'MRD/DUN03', 'RIM03', 'RIM04' ),'6118',&lt;BR /&gt;If(Account = '6107' and Entity = 'MGH','6101',&lt;BR /&gt;If(Account = '6107' and Entity = 'HAN','6101',&lt;BR /&gt;If(Account = '6107' and Match(Entity, 'SR5', 'AHL'),'6109',&lt;BR /&gt;If(Account = '6107' and Match(Project, 'QUA/CN/IND4','QUA/CN/IND3','CNT/CN/CBLK3','QUA/CN/CBLK3'),'6108',&lt;BR /&gt;If(Account = '6107' and Match(Project, 'CNT/CN/HO'),'6109',&lt;BR /&gt;If(Account = '6107' and Match(Project, 'APL05','CNT/CN/IND3'),'6105',&lt;BR /&gt;IF(IncExp = 'Income' and Entity = 'MRC' and Left(ChargeDescription,5) = 'Sales', '6119',&lt;BR /&gt;IF(IncExp = 'Income' and Entity = 'MRC' and Left(ChargeDescription,5) = 'Devel', '6120',&lt;BR /&gt;Account))))))))) as Account,&lt;BR /&gt;Category,&lt;BR /&gt;Currency,&lt;BR /&gt;Scenario,&lt;BR /&gt;TransactionID as IncAuditNum,&lt;BR /&gt;From,&lt;BR /&gt;To,&lt;BR /&gt;Date(Date, 'DD/MM/YY') as IncomeDate,&lt;BR /&gt;Date(Entrydate, 'DD/MM/YY') as IncEntryDate,&lt;BR /&gt;Year(Entrydate) &amp;amp; '-' &amp;amp; Month(Entrydate) as IncEntryYrMth,&lt;BR /&gt;Trantype,&lt;BR /&gt;InvNumber,&lt;BR /&gt;Amount as Nett,&lt;BR /&gt;VAT,&lt;BR /&gt;Gross as Amount,&lt;BR /&gt;Received,&lt;BR /&gt;IncExp,&lt;BR /&gt;TenantStatus,&lt;BR /&gt;Inerror,&lt;BR /&gt;Cancelled,&lt;BR /&gt;IF(IncExp = 'Income' and Entity = 'HAN' , (Right(TenantRef,2) &amp;amp; ' ' &amp;amp; UnitDescription),&lt;BR /&gt;IF(IncExp = 'Income' and Entity = 'MGH' , (Right(TenantRef,2) &amp;amp; ' ' &amp;amp; UnitDescription),&lt;BR /&gt;IF(IncExp = 'Income' and Project = 'RIM08' , (Right(TenantRef,2) &amp;amp; ' ' &amp;amp; UnitDescription),&lt;BR /&gt;IF(IncExp = 'Income' and Entity = 'MRC' and Left(ChargeDescription,5) = 'Sales', Alt_Name,&lt;BR /&gt;IF(IncExp = 'Income' and Entity = 'MRC' and Left(ChargeDescription,5) = 'Devel', Alt_Name,&lt;BR /&gt;UnitDescription))))) as UnitDescription,&lt;BR /&gt;ApplyMap('MGHNomPerADJMap', TransactionID, NomPeriod) as NomPeriod,&lt;BR /&gt;if (Match(TenantType, 'INTAM','EXTAM'), 'INV' &amp;amp; NUM(QubeCode),&lt;BR /&gt;if (Match(TenantType, 'INTCON','EXTCON'), 'CON' &amp;amp; NUM(QubeCode),&lt;BR /&gt;'DEV' &amp;amp; NUM(QubeCode)))&lt;BR /&gt;as QubeCodeMap&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(vLoadPath)\$(vIncomeFile)&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;where [Trantype] &amp;lt;&amp;gt; 'Receipt' and [Trantype] &amp;lt;&amp;gt; 'Refund' and TransactionID &amp;lt;&amp;gt; '65052' and TransactionID &amp;lt;&amp;gt; '72971' and TransactionID &amp;lt;&amp;gt; '65658' and TransactionID &amp;lt;&amp;gt; '72973'&lt;BR /&gt;and TransactionID &amp;lt;&amp;gt; '68057' and TransactionID &amp;lt;&amp;gt; '72975' and TransactionID &amp;lt;&amp;gt; '69414' and TransactionID &amp;lt;&amp;gt; '69448' and TransactionID &amp;lt;&amp;gt; '72880' and TransactionID &amp;lt;&amp;gt; '72882';&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662002#M448884</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-02T10:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662010#M448885</link>
      <description>&lt;P&gt;you are missing the "Group by" Statement at the end of your script.&lt;/P&gt;&lt;P&gt;I cannot recommend doing it here cause you need to group the statement by every non aggregated column.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instead you think about Creating another aggregated table like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IncomeAgg:
Load OwnerRef,
     OwnerName,
     Count(DISTINCT If(Account = '6101', TenantRef)) as UnitSales
Resident IncomeTemp
Group by OwnerRef, OwnerName
;
//add More dimensions if you need to&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 02 Jan 2020 10:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662010#M448885</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-01-02T10:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662053#M448889</link>
      <description>&lt;P&gt;I've set it up as a separate table &amp;amp; concatenated it with my FACT table.&lt;/P&gt;&lt;P&gt;It has worked in so far as there is now a populated UnitSales field, but it doesn't seem to have taken the If(Account ='6101') part into account - i.e. it has populated for data outside this code also.&lt;/P&gt;&lt;P&gt;Not the end of the world - I can use set analysis to limit this in my chart.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 11:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662053#M448889</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-02T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662056#M448890</link>
      <description>&lt;P&gt;concatenation seems wrong to me here.&lt;/P&gt;&lt;P&gt;i would do it like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;inner join (IncomeTemp)
Load OwnerRef,
     OwnerName,
     Count(DISTINCT If(Account = '6101', TenantRef)) as UnitSales
Resident IncomeTemp
Group by OwnerRef, OwnerName
;
//add More dimensions if you need to&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 12:03:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662056#M448890</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-01-02T12:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662086#M448894</link>
      <description>&lt;P&gt;Apologies for my ignorance but not sure how this will work.&lt;/P&gt;&lt;P&gt;For further context I have 4 sources of data, Income, Expenditure, Stock &amp;amp; Budget which all concatenate into a fact table within my script. Hence I was trying to create a 5th source above.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662086#M448894</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-02T13:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662089#M448895</link>
      <description>&lt;P&gt;Then i can only recommend you taking the first approach where the table stays alone as an aggregated table linked over (in best case) one dimension from your fact table.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;tim&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 13:05:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662089#M448895</guid>
      <dc:creator>zhadrakas</dc:creator>
      <dc:date>2020-01-02T13:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662145#M448897</link>
      <description>&lt;P&gt;Thanks Tim,&lt;/P&gt;&lt;P&gt;Really appreciate the help - almost there I think - it seems the formula isn't counting the distinct TenantRefs though - seems to be counting them all.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I've tried to attach a snip from a straight table of the data - all figures should be 1 - as it's counting the distinct value - however you'll see that in this case the highlighted line is 3. The invoice was entered incorrectly initially, this was credited off &amp;amp; then reentered correctly - all under the same tenant so value should be 1.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SalesUnitsGrab.PNG" style="width: 768px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/26288i481BB7917BB6CFE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="SalesUnitsGrab.PNG" alt="SalesUnitsGrab.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 15:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662145#M448897</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-02T15:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662153#M448901</link>
      <description>&lt;P&gt;Anthony, Tim is likely the better resource here, but I think you need some logic to check if there are multiple transactions in those cases and only load the line you want...&amp;nbsp; Not sure if that will make sense or not, the Peek() function would be part of that solution I think, but I am not a very good developer just FYI.&amp;nbsp; The only other thing I can offer is the following link to the Design Blog area of the Community, there are hundreds of mostly how-to topics that may be of some help.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am not exactly sure what you need at this point, otherwise I would have done some searching and give you something more specific from there, felt it was better to let you poke around on your own in this case, so I do not confuse you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Hopefully this will help, but maybe Tim will be back with something more helpful or someone else will chime in on things.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 15:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662153#M448901</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-01-02T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662157#M448902</link>
      <description>&lt;P&gt;Thanks Brett,&lt;/P&gt;&lt;P&gt;I thought by putting DISTINCT into the formula this was saying only count the DISTINCT TenantRefs - that's how it works in a formula in a chart - may be different in script.&lt;/P&gt;&lt;P&gt;So for example if I have a TenantRef of HAN01/01/01 appear 3 times in 1 month (like in the example - an invoice entered incorrectly - credited &amp;amp; entered correctly) - then it only counts as 1 not 3 - that's what I'm trying to achieve.&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 15:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662157#M448902</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-02T15:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662165#M448903</link>
      <description>&lt;P&gt;Anthony, yeah, sorry, you are correct there, but there must be something in the data model that is causing things to think those are all unique, i.e. something in the 'full' record that makes each one unique, in that case, I think the distinct would do what it is doing in your case, but I could be wrong, again, I am not too swift on the development side, I know enough to be pretty dangerous, hopefully someone else with better dev skills can have a look and see if they concur etc.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 15:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662165#M448903</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-01-02T15:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662287#M448917</link>
      <description>&lt;P&gt;Your script is reading:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If(Account = '6101', Count(DISTINCT TenantRef)) as UnitSales.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is &lt;EM&gt;&amp;lt;HAN02/01/70&amp;gt;&lt;/EM&gt; (&lt;SPAN&gt;credited off &amp;amp; then reentered correctly&lt;/SPAN&gt;) a member from Account 6101?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 02:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662287#M448917</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-01-03T02:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662331#M448920</link>
      <description>&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;Yes all 3 entries are members of 6101&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 08:32:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662331#M448920</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-03T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662332#M448921</link>
      <description>&lt;P&gt;Is that column an expression like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;sum(&lt;SPAN&gt;UnitSales&lt;/SPAN&gt;&lt;SPAN&gt;)?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Maybe try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(count(distinct UnitSales),&amp;lt;dim1&amp;gt;,&amp;lt;dim2&amp;gt;,&amp;lt;dim3&amp;gt;))&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 08:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662332#M448921</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-01-03T08:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation / Counting in a script</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662951#M448965</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;&lt;P&gt;I solved this by creating a new source to count the unit sales - basically as you suggested above from the IncomeTemp table.&lt;/P&gt;&lt;P&gt;I then concatenated this into my fact table - worked perfectly.&lt;/P&gt;&lt;P&gt;Thanks again for your assistance&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 14:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation-Counting-in-a-script/m-p/1662951#M448965</guid>
      <dc:creator>anthony_kinsell</dc:creator>
      <dc:date>2020-01-06T14:30:55Z</dc:date>
    </item>
  </channel>
</rss>

