Forum Discussion
Dynamic Customer Segmentation
- 4 years ago
Hi Anonymous ,
Because you applied the [Active Customers #] <> Blank filter in this visual,
you need to adjust the formula to:
Active Customers #2 = CALCULATE( DISTINCTCOUNT('FactSales'[Customer ID]), FILTER( FILTER ( VALUES ( DimCustomer[Customer ID] ), [Active Customers #] <> BLANK () ), [Recency Score] >= MIN (Seg2_Recency[Min]) && [Recency Score] <= MAX (Seg2_Recency[Max]) && [Frequency Score] >= MIN (Seg2_Frequency[Min]) && [Frequency Score] <= MAX ( Seg2_Frequency[Max] ) && [Monetary Score] >= MIN (Seg2_Monetary[Min]) && [Monetary Score] <= MAX ( Seg2_Monetary[Max] ) ) )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Because you applied the [Active Customers #] <> Blank filter in this visual,
you need to adjust the formula to:
Active Customers #2 =
CALCULATE(
DISTINCTCOUNT('FactSales'[Customer ID]),
FILTER(
FILTER ( VALUES ( DimCustomer[Customer ID] ), [Active Customers #] <> BLANK () ),
[Recency Score] >= MIN (Seg2_Recency[Min]) && [Recency Score] <= MAX (Seg2_Recency[Max]) &&
[Frequency Score] >= MIN (Seg2_Frequency[Min]) && [Frequency Score] <= MAX ( Seg2_Frequency[Max] ) &&
[Monetary Score] >= MIN (Seg2_Monetary[Min]) && [Monetary Score] <= MAX ( Seg2_Monetary[Max] )
)
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks so much!
btw, I think you have typo, I change to dimCustomer instead then it works,