Latest Enterprise DNA Initiatives

Count of Customers - Avg Days Between Orders

Hello All, Happy New Year in Advance!

I am working on customer analytics - trying to address few business questions around customer buying frequency, new and existing customers sales etc…
I’m using Avg Days between orders as one of the metric, this metrics provide insights into customers buying frequency…

I am trying to show how customers are spread with respect to the buying frequency - simply want to provide details of no. of customer who have an avg days between orders - say 10 - 20 days, 21 - 25 days, 30 - 35 days etc…

In trying to search this portal, found one of the solution which is exactly how i have my data model set up as well…

Here’s what my current data looks like as well… I have customer and an avg days between orders (measure) for each customers, like shown in the image below.


Need help in creating bins like shown in the image below…

So reaching out here to see if anyone has been able to take a measure (which is calculated using summarize function) and apply binning… I have attached a sample datamodel here, which is how my data model is set up as well…

EDNA - Average Days Between Solution.pbix (446.1 KB)

Once again, thanks for reading my post and appreciate any advise…


Hello @sanappi09,

Thank You for posting your query onto the Forum.

Firstly, you’ll be required to create a disconnected table with a minimum and maximum intervals suggested in it. Below is the screenshot provided for the reference -

Disconnected Table

And then write the formula as provided below -

Count Of Customers - Segmentation = 
VAR CustomersDimension = VALUES( Sales[Customer Name Index] )

CALCULATE( COUNTROWS( VALUES( Sales[Customer Name Index] ) ) , 
    FILTER( CustomersDimension ,
            FILTER( 'Average Days Table' ,
                [Avg Days Between] >= 'Average Days Table'[Min] &&
                [Avg Days Between] < 'Average Days Table'[Max] ) ) > 0 ) )

So now, you can have the results in terms of bins. Below is the screenshot provided for the reference -

Resultant Output

I’m also attaching the working of the PBIX file for the reference and also providing some of the links of the videos available onto the “Grouping and Segmentation” topic.

Hoping you find this useful and meets your requirements that you’ve been looking for. :slightly_smiling_face:

Thanks and Warm Regards,

EDNA - Average Days Between Solution - Harsh.pbix (449.8 KB)

1 Like