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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

calculate variance on matrix table

Capture.JPGthats a matrix table. how do i cal variance between budget vs fullyallocated columns? 

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may try the measure below.

Measure =
IF (
    ISINSCOPE ( Table1[Column2] ),
    SUM ( Table1[Value] ),
    CALCULATE ( SUM ( Table1[Value] ), Table1[Column2] = "budget" )
        - CALCULATE ( SUM ( Table1[Value] ), Table1[Column2] = "fullyallocated" )
)
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

no calculating  as expected. but the bigger problem is i need to just get one colum, but i get 2 colums for that measure. i know its bcuase of matrix any way to restric it ? s

Measure = 
IF (
    ISINSCOPE (HL_scenario_Prim[lvl1] ),
    SUM ( 'Fact'[Finance_Value] ),
    CALCULATE ( SUM ('Fact'[Finance_Value] ),HL_scenario_Prim[lvl1] = "BUDGET" )
        - CALCULATE ( SUM ( 'Fact'[Finance_Value] ), HL_scenario_Prim[lvl1] = "FullyAllocatedActuals" )
)  

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
Top Kudoed Authors