Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
d_prashanthredd
Creator III
Creator III

Active Customers for Max Quarter (Year-Q)

Hi Experts,

I'm pulling data from a third party DB and which contains few dimensions, current quarter revenu and previous quarter revenue (grouped by a Year-Quarter).

My requirement is to build a dashboard with Active, Lost and New customers.

Note: My all calculations should be grouped by Quarter and Customer

Expressiosn used

Active: sum(if(aggr(sum(CurrentRevenue), Customer, YearQ)>0, 1))

Lost: sum(if(aggr(sum(CurrentRevenue), Customer, YearQ)<=0 and aggr(sum(PrevRevenue), Customer, YearQ)>0, 1))

New: sum(if(aggr(sum(CurrentRevenue), Customer, YearQ)>0 and aggr(sum(PrevRevenue), Customer, YearQ)<=0, 1))

Now,

I want to have one KPI which should display max quarter Active Customers and one more with New Customers. I tried by using Maxstring but failed to get it.

 

 

Labels (1)
0 Replies