Forum Discussion
Filter and Sum Repurchase each customer
Hello,
This is my sample data.
My question, I would like to sum total and filter who repurchase greater than 2 times. But I have some problem following below,
Best Regards,
Hi,
Like this?
Please note the visual level filter and the creation of a parameter:
Code:
__Check = SUMX(VALUES('Table'[Cust]), if ( CALCULATE(COUNT('Table'[product]), ALLEXCEPT('Table','Table'[Cust])) > Parameter[Parameter Value], 1,0) )Link to file.
Please mark as solution if so. Thumbs up for the effort are appreciated.
Kind regards,
Steve.
3 Replies
- Ashish_Mathur
Super User
Hi,
Based on that data that you have shared, please show the exact result that you are expecting. Also, share data in a format that can be pasted in MS Excel.
- UntamanEiFrequent Visitor
I appreciate your reply Ashish_Mathur .
This is my expected result. I would like to overview when each customer purchases.
when I would like to filter who purchases greater than 2 times.
This is my sample data.
Date Cust product 1/1/2020 A C001 1/13/2020 B C002 1/22/2020 C C003 1/24/2020 D C004 1/30/2020 E C005 2/2/2020 F C001 2/4/2020 G C003 2/19/2020 A C001 2/25/2020 B C003 2/27/2020 C C004 3/5/2020 G C001 3/11/2020 D C003 3/17/2020 E C004 3/19/2020 A C005 3/25/2020 E C001 4/4/2020 F C002 4/7/2020 B C003 4/12/2020 C C004 4/15/2020 D C005 4/30/2020 I C001 Best Regards,
- stevedep
Memorable Member
Hi,
Like this?
Please note the visual level filter and the creation of a parameter:
Code:
__Check = SUMX(VALUES('Table'[Cust]), if ( CALCULATE(COUNT('Table'[product]), ALLEXCEPT('Table','Table'[Cust])) > Parameter[Parameter Value], 1,0) )Link to file.
Please mark as solution if so. Thumbs up for the effort are appreciated.
Kind regards,
Steve.