This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
I would like to aggregate distinct values for Extended Invoice Total Amount and Client Subtotal. I'm aware of SUMX(DISTINCT([ColumnName]), MAX(Value)) but that does not work in this scenario. The desired output is 19570 for Extended Invoice Amount and 21527 for Client Subtotal.
Thanks in advance.
Solved! Go to Solution.
try these two measures:
Total Client SubTotal =
SUMX(
SUMMARIZE(
Table1,Table1[client total])
,
[client total]
)
Total Extended Invoice Amount =
SUMX(
ADDCOLUMNS(
SUMMARIZE( Table1, Table1[Extended Inv Total]),
"TEST2",
CALCULATE(
MAX(Table1[Extended Inv Total])
)
),
[TEST2]
)try these two measures:
Total Client SubTotal =
SUMX(
SUMMARIZE(
Table1,Table1[client total])
,
[client total]
)
Total Extended Invoice Amount =
SUMX(
ADDCOLUMNS(
SUMMARIZE( Table1, Table1[Extended Inv Total]),
"TEST2",
CALCULATE(
MAX(Table1[Extended Inv Total])
)
),
[TEST2]
)Thanks for your reply, Nick. Your solution works for Client Subtotal. For Extended Invoice Amount, there is one additional requirement. There can be multiple From Company Key's associated to a Work Order Number. I need to report at the From Company level, and this field will be coming from a seperate dimension table.
Following up. I modified your solution for Extended Invoice Amount by wrapping it in a calculate function with a userelationship arguement. This has solved my issue.
Thanks again for your help, Nick.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 32 | |
| 28 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 35 | |
| 34 | |
| 24 | |
| 24 |