March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
24 | |
21 | |
20 | |
15 | |
10 |