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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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] )
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!