Forum Discussion
Anonymous
5 years agoNot applicable
Active Customers by day
I currently count active and unactive customers based on customers who have been in +/- 100 days. My measures only give me a current day view of the active customers. Would it be possible to get a me...
- 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.
v-janeyg-msft
Community Support
5 years agoHi, 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]
) + 0
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.