Forum Discussion
Active Customers by day
- 5 years ago
Hi, Anonymous
I'm sorry. I modify the measure.
active = COUNTX ( FILTER ( ALL ( Customers ), Customers[CURRENT last order] >= SELECTEDVALUE ( 'Table'[Date] ) - 100 && [CURRENT last order] <= SELECTEDVALUE ( 'Table'[Date] ) ), [customerID] ) + 0inactive = COUNTX ( FILTER ( ALL ( Customers ), Customers[CURRENT last order] < SELECTEDVALUE ( 'Table'[Date] ) - 100 || [CURRENT last order] > SELECTEDVALUE ( 'Table'[Date] ) ), [customerID] ) + 0Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Add the calculated column in the customer table
Active or In active customer = if (DATEDIFF(today(),last order date())=100, "Active Customer","Inactive Customer")
- Anonymous5 years agoNot applicable
Don't think this would give me historical view of how many active and unactiave I have
- v-janeyg-msft5 years ago
Community Support
Hi, Anonymous
Can you explain the logic of active and inactive? Is it inactive if you don’t place an order on the same day?
Secondly, Can you share some more sample fake data? So we can quickly help you deal with the problem.
Best Regards
Janey Guo
- Anonymous5 years agoNot applicable
Here is my current setup in PBI file and then I made a chart for what I am looking for. Active is if you placed an order in the last 100 days but I want to be able to see it historically instead of how I have it currently which is just off of today()