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 have the following data and need a measure that excludes the intersection of Account "A2" and Branch "Br1". The sum of the measure should therefore = 100 for the two months.
Account
A1 |
A2 |
A3 |
Branch
Br1 |
Br2 |
BranchAccountMonthAmount
Br1 | A1 | Jan | 10 |
Br1 | A2 | Jan | 1000 |
Br1 | A3 | Jan | 10 |
Br2 | A1 | Jan | 10 |
Br2 | A2 | Jan | 10 |
Br2 | A3 | Jan | 10 |
Br1 | A1 | Feb | 10 |
Br1 | A2 | Feb | 1250 |
Br1 | A3 | Feb | 10 |
Br2 | A1 | Feb | 10 |
Br2 | A2 | Feb | 10 |
Br2 | A3 | Feb | 10 |
Thank you in advance.
Solved! Go to Solution.
Hi @_Kevin_ ,
Please try following DAX to create a measure:
SumAmount = CALCULATE(SUM('Table'[Amount]),FILTER('Table', 'Table'[Account] <> "A2" || 'Table'[Branch] <> "Br1"))
The result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @_Kevin_ ,
Please try following DAX to create a measure:
SumAmount = CALCULATE(SUM('Table'[Amount]),FILTER('Table', 'Table'[Account] <> "A2" || 'Table'[Branch] <> "Br1"))
The result you want:
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@_Kevin_ Maybe:
Measure =
SUMX(FILTER('Table',[Account] = "A2" && [Branch] = "Br1"),[Amount])
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 |
---|---|
50 | |
27 | |
23 | |
13 | |
8 |
User | Count |
---|---|
73 | |
51 | |
45 | |
16 | |
12 |