Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!View all the Fabric Data Days sessions on demand. View schedule
Hello, I'm having trouble with a DAX expression. I have two tables, Vendors and Receipts . They're laid out like so, with a many-to-many relationship linked through the Vendor column:
Vendors:
| Month | Vendor |
| 2022-01 | AlphaAssociates |
| 2022-02 | AlphaAssociates |
| 2022-01 | BuenoBiz |
| 2022-02 | BuenoBiz |
| 2022-01 | CenturyComm |
| 2022-02 | CenturyComm |
Receipts:
| Month | Vendor | Cost |
| 2022-01 | AlphaAssociates | $10 |
| 2022-01 | AlphaAssociates | $5 |
| 2022-01 | BuenoBiz | $5 |
| 2022-01 | CenturyComm | $7 |
| 2022-02 | AlphaAssociates | $15 |
| 2022-02 | BuenoBiz | $9 |
| 2022-02 | CenturyComm | $3 |
I'm trying to add a calculated column to the Vendors table that sums the data in Receipts according to the Month and Vendor of the row. Right now I'm using the expression
| Month | Vendor | Cost |
| 2022-01 | AlphaAssociates | $15 |
| 2022-02 | AlphaAssociates | $15 |
| 2022-01 | BuenoBiz | $5 |
| 2022-02 | BuenoBiz | $9 |
| 2022-01 | CenturyComm | $7 |
| 2022-02 | CenturyComm | $3 |
| Month | Vendor | Cost |
| 2022-01 | AlphaAssociates | $30 |
| 2022-02 | AlphaAssociates | $30 |
| 2022-01 | BuenoBiz | $14 |
| 2022-02 | BuenoBiz | $14 |
| 2022-01 | CenturyComm | $10 |
| 2022-02 | CenturyComm | $10 |
Solved! Go to Solution.
@ekepp , I tried a new column and getting the correct result
Column = sumx(FILTER(Receipts, Receipts[Month] = Vendors[Month] && Receipts[Vendor] = Vendors[Vendor]),Receipts[Cost])
I guess I should have been using SUMX instead of CALCULATE and SUM, thank you!
@ekepp , I tried a new column and getting the correct result
Column = sumx(FILTER(Receipts, Receipts[Month] = Vendors[Month] && Receipts[Vendor] = Vendors[Vendor]),Receipts[Cost])
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 5 | |
| 3 |
| User | Count |
|---|---|
| 28 | |
| 20 | |
| 19 | |
| 19 | |
| 12 |