cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Helper II

## Create a new measyre

Hello team

I have a table with the following layout. Capitalized and Costs are imported from files. The delta is the calculation between those 2 (costs-capitalized). How can i create a calculated measure to perform the calculation in PBI?

Tx

 Measure Group Total Capitalized 100 Costs 200 delta 100 =Costs-Capitalized
1 ACCEPTED SOLUTION
Super User

try this

delta =
VAR capital =
CALCULATE ( SUM ( [table[total] ), table[measure group] = "Capitalized" )
VAR costs =
CALCULATE ( SUM ( [table[total] ), table[measure group] = "Costs" )
VAR result = costs - capital
RETURN
result

If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!

Super User

try this

delta =
VAR capital =
CALCULATE ( SUM ( [table[total] ), table[measure group] = "Capitalized" )
VAR costs =
CALCULATE ( SUM ( [table[total] ), table[measure group] = "Costs" )
VAR result = costs - capital
RETURN
result

If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors
Users online (3,690)