Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Rolling total customers

Hi all,

 

The goal is to see how many customers we have as a rolling total.

 

We have a sales table containing "Company ID" and "Order Date".

 

I would like to do a Rolling Total of Companies based on First Order Date.

 

I can do this easily by Power BI's "Quick Measure" for Rolling Total, however, I need a modification of this.

If a customer has not ordered for 18 months, the customer should not count anymore (but still count before that).

 

Example:

 

If customer A had a first order Jan2010, and a last order Dec 2012, the customer should be included in the Rolling Total from Jan2010 (First order) and until June2014 (18 months after the last order of Dec2012), and not after that.

 

Can you help me do that?

 

Best,

6 Replies