Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Reply
fanisgeorg
Helper II
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 GroupTotal 
Capitalized100 
Costs200 
delta100=Costs-Capitalized
1 ACCEPTED SOLUTION
vanessafvg
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!




View solution in original post

1 REPLY 1
vanessafvg
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!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Users online (3,690)