Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
marishnagendran
Creator
Creator

2 Times Billing Customers

Dear All,

I want to take last 6 months billing customers in that I want to calculate no.of billings if less than 2.

For Example:

Current Month we have to avoid

NameFebMarAprMayJunJul
       
A101000
B111000
C000011
D001111

 

1 indicates billing on that month

Customer A,C i want to show

 

3 Replies
Ezirraffner
Creator II
Creator II

Hi @marishnagendran ,

You can try like below:

1) Calculated dimension:

if(Aggr(RangeSum(Feb,Mar,Apr,May,Jun,Jul),Name)<=2,Name)

 

OR

 

1) Data Load

temp:
CrossTable (Month,Billing,1)
load * inline [
Name,Feb,Mar,Apr,May,Jun,Jul,
A,1,0,1,0,0,0,
B,1,1,1,0,0,0,
C,0,0,0,0,1,1,
D,0,0,1,1,1,1
];

 

2) with calculated dimension

totals.png

if(Aggr(sum(Billing),Name)<=2,Name)

 

Hope this helps you.

Regards,

marishnagendran
Creator
Creator
Author

Thanks for your reply Ezir

 

NameFebMarAprMayJunJul
       
A101000
B111000
C000011
D001111

In above attached Pivot table is using
Dimension as Customer
Column as Month
Expression as count({<Month = {$(=Max(Month)-6)}>}distinct Customer_Number)

From this Output i want to find no.of billing less than 2

marishnagendran
Creator
Creator
Author

Any Idea??