Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I am trying to create a measure that calculates the Sum of all spend for Type A while excluding Accounts 9,10,11. Can anyone help me with this?
| Type | Spend | Account |
| A | 20,000,000 | 1 |
| A | 20,000,000 | 2 |
| A | 20,000,000 | 3 |
| A | 20,000,000 | 4 |
| A | 20,000,000 | 5 |
| A | 50,000,000 | 6 |
| A | 10,000,000 | 7 |
| A | 10,000,000 | 8 |
| A | 50,000,000 | 9 |
| A | 50,000,000 | 10 |
| A | 50,000,000 | 11 |
| B | 10,000,000 | 3 |
| B | 10,000,000 | 3 |
Solved! Go to Solution.
You can use a measure expression like this
NewMeasure = CALCULATE(SUM(Table[Spend]), NOT(Table[Account] IN {9,10,11}))
If Account is a text column, put each value in double quotes.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@dw700d , Please refer my below screen shot:
You can use a measure expression like this
NewMeasure = CALCULATE(SUM(Table[Spend]), NOT(Table[Account] IN {9,10,11}))
If Account is a text column, put each value in double quotes.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 37 | |
| 35 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 29 | |
| 27 | |
| 25 |