Forum Discussion
Anonymous
4 years agoNot applicable
Dynamic Customer Segmentation
Hi Experts, I'm building a RFM Model, a Dynamic Customer Segmentation Model. Formerly I made it in method 1 (upper part) and it is successful, but now I would like to make it advanced to use me...
- 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.
lbendlin
4 years agoSuper User
You can use DAX Studio to examine your measures and optimize their performance. For Active Customers #2 you can vastly improve performance by avoiding recalculation of your measures.
Active Customers #2 =
var r = [Recency Score]
var f = [Frequency Score]
var m = [Monetary Score]
return CALCULATE(
DISTINCTCOUNT('FactSales'[Customer ID]),
FILTER(
VALUES('FactSales'[Customer ID]),
r >= MIN (Seg2_Recency[Min]) && r <= MAX (Seg2_Recency[Max]) &&
f >= MIN (Seg2_Frequency[Min]) && f <= MAX ( Seg2_Frequency[Max] ) &&
f >= MIN (Seg2_Monetary[Min]) && f <= MAX ( Seg2_Monetary[Max] )
)
)- Anonymous4 years agoNot applicable
Really thank you for your reply.
However, it doesn't work.