The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Everyone,
I need to find the count of customers who did second purchases. This is defined as the count of users who have placed more than one order.
Could someone help me with DAX logic?
Solved! Go to Solution.
You could try a measure like
Num customers > 1 order =
var summaryTable = ADDCOLUMNS( VALUES( Orders[Customer ID]), "@num rows", CALCULATE(COUNTROWS(Orders)))
return COUNTROWS( FILTER( summaryTable, [@num rows] > 1) )
You could try a measure like
Num customers > 1 order =
var summaryTable = ADDCOLUMNS( VALUES( Orders[Customer ID]), "@num rows", CALCULATE(COUNTROWS(Orders)))
return COUNTROWS( FILTER( summaryTable, [@num rows] > 1) )
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
22 | |
14 | |
14 | |
9 | |
7 |