I need to calculate The Averge days between orders for particuler customer (all) under the following criteria:
-The frequency of days should be dynamic to change based on the calendar period I select (filter), Here is an example:
Customer (Peter) Purchase goods from store during the period from 1 April to 20 April 2020 Around 6 times in that month. Scienario - A:
I want to calculate the Average frequency of Times (Days) Between orders of Customer name Peter , during Month of April 2020 : The result will be:
Customer Peter Purchase from 1 April to 20 April 2020 Every 3 days= 6.66 Times frequency .
Scinario-B:
I want to check the Average frequency of Times (Days) Between orders of Customer name Peter , during the period 1 January 2020 Upto Month of September 2020 :
The result will be:
Every 45 days= (n) Times frequency .
The same thing for all other customers in (Table custom visual), I want to calculate the Average days (times) between orders based on the Filter of Calender I select.
Attached sample Pbix file. Customers Dynamic Segmentation by Order Count.pbix (649.8 KB)
Hi @MudassirAli
No I tried it , It gives the same results if I select any calender period there is no change (Same results regardless filtering calendar).
You can try .
Hi @MAAbdullah47, did the response provided by the experts help you solve your query? If not, how far did you get and what kind of help you need further? If yes, kindly mark the thread as solved. Thanks!
I have small problem @MudassirAli , I want to create Index through power query but The data I have is too big (2.5M) rows, Always crash out of memory, do you have an Idea how to create the Index through (DAX) based on date Instead of Power Query?
@MAAbdullah47 Doing indexing is not a problem outside PBI, I can do it with VBA and Python, but the point you should ask yourself is if you really need indexing? it will increase the size of your model. What is the goal that you want to achieve with index?
I want to solve the problem of Days Between Orders to be dynamic, you posted solution before but it doesn’t work dynamically, @MudassirAli post one works fine with small db (Creating index) but with the cussrent db it doesn’t work , did you got it @AntrikshSharma?