Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I'am looking for a DAX measure (not a column) which can calculate the number of people who have 2 or more purchases. In this example the result should be 2. It looks pretty easy but I can't find the solution. Thx for your help.
| People | Purchase |
| P1 | Pu1 |
| P1 | Pu2 |
| P1 | Pu3 |
| P2 | Pu4 |
| P3 | Pu5 |
| P4 | Pu6 |
| P4 | Pu7 |
Solved! Go to Solution.
It depends on your table structure. Assuming you have a single table called Table, this would work
=sumx(all(Table[People]),if(CALCULATE(countrows(table))>1,1))
It depends on your table structure. Assuming you have a single table called Table, this would work
=sumx(all(Table[People]),if(CALCULATE(countrows(table))>1,1))
Hi Matt,
thank you it works well
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 15 | |
| 8 | |
| 8 | |
| 8 |