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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Building Price and Consumption effect

Hello!

I'm building an financial report on power BI, and I'm struggling to calculate price and consumption effects for different products.

The price effect is calculated by: (ActualPrice - BudgetPrice) * ActualConsumption. And the Consumption Effect is calculated
by: (ActualCons. - BudgetCons.) * ActualPrice. I need two measures, one for price effect and the other for consumption effect.

gabrielrenno_0-1623851621487.jpeg

@Jihwan_Kim @amitchandak @Fowmy @Anonymous 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

 

[Price Effect] =
SUMX(
    DISTINCT( T[Product] ),
    var PriceDelta = 
        CALCULATE(
            sum( T[Actual] ) - sum( T[Budget] ),
            // You should never slice by
            // this column. It should
            // be hidden.
            T[Information] = "Price"
        )
    var ActualConsumption =
        CALCULATE(
            sum( T[Actual] ),
            T[Information] = "Consump."
        )
    var Result = PriceDelta * ActualConsumption
    return
        Result
)

[Consumption Effect] =
SUMX(
    DISTINCT( T[Product] ),
    var ConsumptionDelta = 
        CALCULATE(
            sum( T[Actual] ) - sum( T[Budget] ),
            // You should never slice by
            // this column. It should
            // be hidden.
            T[Information] = "Consump."
        )
    var ActualPrice =
        CALCULATE(
            sum( T[Actual] ),
            T[Information] = "Price"
        )
    var Result = ConsumptionDelta * ActualPrice
    return
        Result
)

 

 

Please watch the WARNING about one-table models:

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Why-one-table-models-will-produce-WRONG-NUMBE...

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

 

 

[Price Effect] =
SUMX(
    DISTINCT( T[Product] ),
    var PriceDelta = 
        CALCULATE(
            sum( T[Actual] ) - sum( T[Budget] ),
            // You should never slice by
            // this column. It should
            // be hidden.
            T[Information] = "Price"
        )
    var ActualConsumption =
        CALCULATE(
            sum( T[Actual] ),
            T[Information] = "Consump."
        )
    var Result = PriceDelta * ActualConsumption
    return
        Result
)

[Consumption Effect] =
SUMX(
    DISTINCT( T[Product] ),
    var ConsumptionDelta = 
        CALCULATE(
            sum( T[Actual] ) - sum( T[Budget] ),
            // You should never slice by
            // this column. It should
            // be hidden.
            T[Information] = "Consump."
        )
    var ActualPrice =
        CALCULATE(
            sum( T[Actual] ),
            T[Information] = "Price"
        )
    var Result = ConsumptionDelta * ActualPrice
    return
        Result
)

 

 

Please watch the WARNING about one-table models:

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Why-one-table-models-will-produce-WRONG-NUMBE...

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors