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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

How to divide a matrix cell by another matrix cell (Refer Screenshots below)

kunalkk_0-1647851377055.png

 

kunalkk_1-1647851377049.png

 


How do i divide the highlighted values of both the matrix table mentioned above in Power bi (2 different data sources are used for both tables) ?
Desired Result = 1180/1180 = 1

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You need to have common dimensions Like brand name and department, date etc.

 

Then you divide measure from two table across common dimension

divide([Table Measure1], [Table Measure2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

If you just want to calculate the sum table1 / sum table2 of Apple and D001? How about others?

Measure = 
var _t1=CALCULATE(SUM(Table1[Sales]),FILTER('Table1',[Brand Name]="Apple" && [Type]="D001"))
var _t2=CALCULATE(SUM(Table2[Sales]),FILTER('Table2',[Brand Name]="Apple" && [Type]="D001"))
return DIVIDE(_t1,_t2)
Measure for All = 
var _t2= CALCULATE(SUM(Table2[Sales]),FILTER('Table2',[Brand Name]=MAX('Table1'[Brand Name]) && [Type]=MAX('Table1'[Type])))
return DIVIDE(SUM(Table1[Sales]),_t2)

Output:

Eyelyn9_1-1648113777460.png

 

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

amitchandak
Super User
Super User

@Anonymous , You need to have common dimensions Like brand name and department, date etc.

 

Then you divide measure from two table across common dimension

divide([Table Measure1], [Table Measure2])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.