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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors