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
dsl72
Regular Visitor

Divide one matrix by another

I would like to divide the results of one matrix by the results of another.  Here is what the matrices look like:

example.PNG

 

I would like to divide Demand by Capacity for each group and month (ignoring excess groups in demand, like C).  I don't care about the totals, just the individual values.  Is this possible in Power BI?

 

5 REPLIES 5
SivaMani
Resident Rockstar
Resident Rockstar

@dsl72,

 

Correct me if I'm wrong.

 

Your expectation is,

 

A = 52/50 = 1.04

B = 26/32 = 0.81

 

Right?

 

If it is then you just create a calculated measure to attain this.

Yes, but for each group/month combination, not the totals

SivaMani
Resident Rockstar
Resident Rockstar

It will work accordingly.

I'm not sure how to do the calculation for the individual combinations.  CALCULATE won't let me referene the field values directly without an operator.  When I enter the following measure:

 

Utilization = CALCULATE(sum(Demand[Demand])/sum(Capacity[Capacity]))

 

I get this result, which is correct for the row totals, but not the individual combinations:

 

ex2.PNG

Do I need to use a different calculation?

Hi @dsl72,

 

Is there any relationship between 'Demand' table and 'Capacity' table?

 

Could you post your table structures with some sample/mock data which can help us reproduce this issue, so that we can better assist on it? It's even better to just share a sample pbix file which can reproduce the issue. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploadingSmiley Happy

 

Regards

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