Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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] )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Your measure looks fine but what result do you expect?
Proud to be a Super User!
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] )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
95 | |
69 | |
44 | |
38 | |
30 |
User | Count |
---|---|
157 | |
101 | |
60 | |
42 | |
40 |