Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
55 | |
48 | |
43 | |
19 | |
19 |