Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
Solved! Go to Solution.
@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])
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:
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.
@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])
User | Count |
---|---|
98 | |
76 | |
74 | |
50 | |
27 |