Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi,
I have a scenario where I need to calculate against CostItem ( Cost_item_id)
Budget * MP
BudgetMarkup =
VAR _tb = SUMMARIZECOLUMNS(CostItem[Cost_item_id],Budget_Markup[CostItemId],Budget_Markup[MP],"Budget",[Budget])
RETURN
CALCULATE(SUMX(_tb,[MP]*[Budget]) , CostItem[Is_terminal]=true)
The relationship is
Attaching a sample file.
https://github.com/suvechha/samplepbi/blob/main/sample_b.pbix
Solved! Go to Solution.
Hi,
I am not sure what is your expected result, but please try something like below.
BudgetMarkup =
VAR _tb =
SUMMARIZECOLUMNS (
CostItem[Cost_item_id],
Budget_Markup[MP],
"Budget", [Budget]
)
RETURN
SUMX ( _tb, [MP] * [Budget] )
Your measure looks fine but what result do you expect?
Hi,
I am not sure what is your expected result, but please try something like below.
BudgetMarkup =
VAR _tb =
SUMMARIZECOLUMNS (
CostItem[Cost_item_id],
Budget_Markup[MP],
"Budget", [Budget]
)
RETURN
SUMX ( _tb, [MP] * [Budget] )
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 21 | |
| 20 | |
| 19 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 52 | |
| 37 | |
| 31 | |
| 27 |