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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have the following excel formula that I need to convert to DAX for Power BI (Power BI column names are in italics within the excel formula):
Area Contract Price = IFERROR(SUMIFS('Contract Details'!$Z:$Z Sell Extended Price,'Contract Details'!$D:$D Area,'Inbound Report'!$H14 Area,'Contract Details'!$L:$L Product Class,'Inbound Report'!$B14 Material Grade)/SUMIFS('Contract Details'!$Y:$Y Sell Order LB,'Contract Details'!$D:$D Area,'Inbound Report'!$H14 Area,'Contract Details'!$L:$L Product Class,'Inbound Report'!$B14 Material Grade),"")
Contract Details and Inbound Reports are unrelated tables in my Power BI report. I cannot create a relationship because neither table has a unique identifier (many:many). The join is on Inbound Report.Area = Contract Details.Area and Inbound Report.Material Grade = Contract Details.Product Class.
Solved! Go to Solution.
i was able to get my desired results with this :
i was able to get my desired results with this :
SUMIFS is a sum of rows that satisfy the listed matching conditions.
In DAX, you can use filters in a similar way. This might work as a calculated column on 'Inbound Report'.
Numerator =
CALCULATE (
SUM ( 'Contract Details'[Sell Extended Price] ),
'Contract Details'[Area] = 'Inbound Report'[Area],
'Contract Details'[Product Class] = 'Inbound Report'[Material Grade]
)
You can replace 'Inbound Report'[Area] and 'Inbound Report'[Material Grade] with specific values for this to work as a measure.
@kekepania0529 not familiar with SUMIF. Can you provide sample data and expected output.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |