<?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: new customers trend over time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544959#M109766</link>
    <description>&lt;P&gt;Are you looking to compare to just the prior quarter or any prior quarter?&lt;/P&gt;&lt;P&gt;Meaning If I made a purchase 2 years ago, should I be counted as a new customer this quarter, or no?&lt;/P&gt;</description>
    <pubDate>Tue, 17 Mar 2026 11:45:43 GMT</pubDate>
    <dc:creator>WeLoveQlik</dc:creator>
    <dc:date>2026-03-17T11:45:43Z</dc:date>
    <item>
      <title>new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544952#M109763</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'd need to create a bar chart with:&lt;/P&gt;&lt;P&gt;- year quarter on X axis (ex. Q1 2026)&lt;/P&gt;&lt;P&gt;- number of new customers on Y axis (as customers who bought in actual period and didn't in previous)&lt;/P&gt;&lt;P&gt;example:&lt;BR /&gt;for Q1 2026 the value of Y axis should be calculated as number of customers who bought in Q1 2026 and didn't in Q4 2025 and so on...&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The end user should be able to filter by product/product category and any other filters in the UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then it can't be pre calculated in the script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could you help me to find the best way to achieve it?&lt;BR /&gt;Many thanks in advance for your time.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 14:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544952#M109763</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T14:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544959#M109766</link>
      <description>&lt;P&gt;Are you looking to compare to just the prior quarter or any prior quarter?&lt;/P&gt;&lt;P&gt;Meaning If I made a purchase 2 years ago, should I be counted as a new customer this quarter, or no?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 11:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544959#M109766</guid>
      <dc:creator>WeLoveQlik</dc:creator>
      <dc:date>2026-03-17T11:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544972#M109767</link>
      <description>&lt;P&gt;in this case only the prior quarter, but I'll need also comparing with the same quarter previous year.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 13:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544972#M109767</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T13:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544976#M109771</link>
      <description>&lt;P&gt;I would do a check in the script.&lt;/P&gt;&lt;P&gt;First, load a distinct List of Customers and a Flag (I would use a 1) where Quarter = Prior Quarter.&lt;/P&gt;&lt;P&gt;Then, load a distinct list of Customers and a Flag where Quarter = Current Quarter.&lt;/P&gt;&lt;P&gt;Join the table together and if ISNULL(PriorQuarterCustomer) and CurrentQuarterCustomer &amp;gt;1 , New Customer, Existing Customer.&lt;/P&gt;&lt;P&gt;Each reload this check would be made and you should capture all new customers.&lt;/P&gt;&lt;P&gt;You could then use the New Customer flag in set analysis of your expressions.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 13:31:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544976#M109771</guid>
      <dc:creator>WeLoveQlik</dc:creator>
      <dc:date>2026-03-17T13:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544978#M109773</link>
      <description>&lt;P&gt;I could imagine that the simplest approach would be not to use year-quarter as dimension else using n expressions (for each bar one) because it decoupled the periods from each other. Defining the current and previous one within appropriate set statements is rather simple - but in regard to the relationship of the data the current ones doesn't belong to the previous ones and revers and therefore they couldn't be compared directly.&lt;/P&gt;&lt;P&gt;UI alternatives may be to wrap the comparing logic within (n) aggr() to implement there approaches which ignore/overwrite the relationship with set statements like {1} and/or using interrecord-functions like above() to connect different periods with each other. Depending on real scenario such method could become quite complex.&lt;/P&gt;&lt;P&gt;Personally I would tend to transfer the essential part of the logic into the data-model by using&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Design/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;The As-Of Table - Qlik Community - 1466130&lt;/A&gt; or creating (n) flags containing the offset between the sales in day/month/quarters and/or between the sales and today and maybe some kind of clustering/scoring of these flags.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 13:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544978#M109773</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-03-17T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544985#M109777</link>
      <description>&lt;P&gt;I forgot to say that the end user should be able to filter by product/product category and any other filters in the UI.&lt;BR /&gt;Then it can't be pre calculated in the script.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 14:36:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544985#M109777</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T14:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544986#M109778</link>
      <description>&lt;P&gt;using Product as an example. If they select product A, do you want to know if the customer purchased that particular product as a new customer this quarter vs last or any product?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 14:40:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544986#M109778</guid>
      <dc:creator>WeLoveQlik</dc:creator>
      <dc:date>2026-03-17T14:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544989#M109780</link>
      <description>&lt;P&gt;If they select product&amp;nbsp; A&amp;nbsp; then Q1 2026 should be calculated as the number of customers that purchased that product in Q1 2026 but didn't in Q4 2025.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 14:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544989#M109780</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544991#M109782</link>
      <description>&lt;P&gt;ok, great. It may take a little tweaking but something like this should work&lt;/P&gt;&lt;P&gt;Count(&lt;BR /&gt;If(&lt;BR /&gt;Sum({&amp;lt;YearQuarterIndex = {"$(vMaxQuarter)"}&amp;gt;} SalesAmount) &amp;gt; 0&lt;BR /&gt;AND&lt;BR /&gt;Sum({&amp;lt;YearQuarterIndex = {"$(vMaxQuarterM1)"}&amp;gt;} SalesAmount) = 0,&lt;BR /&gt;CustomerID&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your variables will have to ignore selections to ensure you are always getting the max quarter and Prior Quarter.&lt;/P&gt;&lt;P&gt;I suggest using an Index so at the turn of the year you can compare 2026Q1 and 2025Q4&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 14:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544991#M109782</guid>
      <dc:creator>WeLoveQlik</dc:creator>
      <dc:date>2026-03-17T14:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544992#M109783</link>
      <description>&lt;P&gt;For the real scenario an UI approach is needed.&lt;BR /&gt;If it can be useful I can attach a small part of the fact table.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 14:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544992#M109783</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T14:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544994#M109785</link>
      <description>&lt;P&gt;I guess an Aggr() function is needed...nested aggregation not allowed.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 14:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544994#M109785</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T14:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544999#M109787</link>
      <description>&lt;P&gt;Yes, an aggr() will be needed to aggregate the results of the more granular conditions. Depending on the data-set it might not be necessary to sum the sales else just checking if any sales exists. It may look like:&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;-(count({&amp;lt; YQI = {$(=max(QYI)), $(=max(YQI)-1)}&amp;gt;} distinct YQI)=1),&lt;BR /&gt;CustomerID))&lt;/P&gt;&lt;P&gt;sum(aggr(&lt;BR /&gt;&amp;nbsp; &amp;nbsp;-(count({&amp;lt; YQI = {$(=max(QYI)-1), $(=max(YQI)-2)}&amp;gt;} distinct YQI)=1),&lt;BR /&gt;CustomerID))&lt;/P&gt;&lt;P&gt;... and so on - maybe 8 expressions to reflect the trend of two years - and the expression-labels are:&amp;nbsp;max(QYI),&amp;nbsp;max(QYI)-1 ....&lt;/P&gt;&lt;P&gt;ps. YQI = year(Date) * 4 + quarter(Date)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 15:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2544999#M109787</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-03-17T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545001#M109788</link>
      <description>&lt;P&gt;if i well understood the bar chart will have 8 expressions to cover 2 years, one for each quarter ?&lt;/P&gt;&lt;P&gt;what about chart dimension?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 16:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545001#M109788</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T16:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545003#M109789</link>
      <description>&lt;P&gt;Each bar covers a quarter therefore no year-quarter or other period-information are needed respectively mustn't be applied.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 16:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545003#M109789</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2026-03-17T16:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545009#M109790</link>
      <description>&lt;P&gt;I was trying to go through Quarter as a chart dimension and using Aggr() e Above() functions in the expression but with no success.&lt;BR /&gt;I do think the only way to achieve it is using one expression for each time period with no time dimensions.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2026 18:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545009#M109790</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2026-03-17T18:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545042#M109796</link>
      <description>&lt;P&gt;Can you try this:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Count(
  Aggr(
    IF(
      Count(Expression1) + Sum({1} 0) &amp;gt; 0 
      AND 
      RangeSum(Above(Count(Expression1)), 0) = 0,
      1
    ),
    MonthYear, Dim1
  )
)&lt;/LI-CODE&gt;&lt;P&gt;You can change Dim1 to Customer, MonthYear to Quarter and Expression1 to Sales.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 09:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545042#M109796</guid>
      <dc:creator>BIAKS</dc:creator>
      <dc:date>2026-03-18T09:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: new customers trend over time</title>
      <link>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545069#M109815</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;this post may help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Visualization-and-Usability/New-Customers-for-Selected-Quarter/td-p/2080948" target="_self"&gt;https://community.qlik.com/t5/Visualization-and-Usability/New-Customers-for-Selected-Quarter/td-p/2080948&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution could be :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Prepare Quarter Start Date and lets name it :- vquarterstart in Charts variable:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then in set expression use the measure:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Count({&amp;lt;Date={"&amp;gt;=$(=vquarterstart)"},CustomerName = e({&amp;lt;Date={"&amp;lt;$(=vquarterstart)"}&amp;gt;})&amp;gt;}CustomerName)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the variable You can use:-&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vquarterstart =&amp;nbsp; addmonths(yearstart(max(Date)),3*(floor((num(month(Max(Date)))-1)/3)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or If you have have new version of qlik&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you can use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vquarterstart = quarterstart(max(Date))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 12:21:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/new-customers-trend-over-time/m-p/2545069#M109815</guid>
      <dc:creator>brunobertels</dc:creator>
      <dc:date>2026-03-18T12:21:01Z</dc:date>
    </item>
  </channel>
</rss>

