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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
sangeetaraman
Advocate I
Advocate I

Freezing cell to calculate result in Power BI similar to excel

Hi Everyone,

 

I'm trying to make matrix visual with following calculation as done in excel. Ideally I want the "B%*A Qty" column to be caluclated using a measure (by applying the "Formula" column). For every multiplication the subtotal should be multiplied with. It is easy to freeze the subtotals in the A Qty column to achive this in excel.

 

Can anyone please guide me? Thanks in advance.

 

Plant nameB%A QtyB%*A QtyFormula
Plant11.00%120024=1%*2400
Plant180.00%2001920=80%*2400
Plant119.00%1000456=19%*2400
Plant1 Total 2400.00  
Plant245%800.00805.5=45%*1790
Plant220.00%950358=20%*1790
Plant235.00%40626.5=35%*1790
Plant2 Total 1790.00  

 

Rgds

Sangeeta

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sangeetaraman 

You can create a measure

Measure = var a=SUMX(FILTER(ALLSELECTED('Table'),[Plant name] in VALUES('Table'[Plant name])),[A Qty])
return SUMX('Table',[B%]*a)

Output

vxinruzhumsft_0-1684289190042.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @sangeetaraman 

You can create a measure

Measure = var a=SUMX(FILTER(ALLSELECTED('Table'),[Plant name] in VALUES('Table'[Plant name])),[A Qty])
return SUMX('Table',[B%]*a)

Output

vxinruzhumsft_0-1684289190042.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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