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.
How do I make a measure that returns the orders where one customer have created more than one order on a day?
OrderId | CustomerId | Date |
1 | 1 | 1 |
2 | 2 | 1 |
3 | 2 | 2 |
4 | 2 | 2 |
Should return
OrderId | CustomerId | Date |
3 | 2 | 2 |
4 | 2 | 2 |
Solved! Go to Solution.
@mikkelakabel , Try a measure like
measure =
var _1 = calculate(countrows(Table), allexcept(Table, Table[Customer], Table[Date]))
return
calculate(sum(Table[value]), filter( Table, _1 >=1))
@mikkelakabel , Try a measure like
measure =
var _1 = calculate(countrows(Table), allexcept(Table, Table[Customer], Table[Date]))
return
calculate(sum(Table[value]), filter( Table, _1 >=1))
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 |
---|---|
42 | |
21 | |
21 | |
14 | |
13 |
User | Count |
---|---|
43 | |
39 | |
33 | |
18 | |
17 |