I’m trying to create dax measure that counts transactions for only ids with one transaction or more in the same table for specific transaction type. example transactions table (from this table I need to count number of transactions for customers whome having atleast one transaction of type A:
id | type | count |
---|---|---|
1 | A | 10 |
2 | B | 5 |
2 | C | 11 |
3 | A | 4 |
3 | C | 1 |
- in this example only id 1 and 3 shoulde be considered.
expected output :
type | sum(count) |
---|---|
A | 14 |
B | 0 |
C | 1 |
Noting that I need only measures to achieve this since I’m connecting to SSAS model (live connection)