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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mehlenbae2
Helper II
Helper II

I need help dividing two sums from two different tables..

I have two tables:

Asset

Technician

 

I need to divide the total of Desktop, Laptop, and Phones by the number of technicians at each site. This is what my PBI looks like:

mehlenbae2_0-1665061889588.png

mehlenbae2_1-1665061929182.png

How can I do this??

 

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @mehlenbae2 

Thanks for reaching out to us.

>>  to divide the total of Desktop, Laptop, and Phones by the number of technicians at each site.

please try this measure

 

Measure = 
var _value=SUM(Asset[value])
var _total_Site=COUNTX(FILTER(Technician,Technician[site]=MIN(Asset[site code])),[site])
return DIVIDE(_value,_total_Site)

 

vxiaotang_1-1666764441412.png

 

Best Regards,

Community Support Team _Tang

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

View solution in original post

1 REPLY 1
v-xiaotang
Community Support
Community Support

Hi @mehlenbae2 

Thanks for reaching out to us.

>>  to divide the total of Desktop, Laptop, and Phones by the number of technicians at each site.

please try this measure

 

Measure = 
var _value=SUM(Asset[value])
var _total_Site=COUNTX(FILTER(Technician,Technician[site]=MIN(Asset[site code])),[site])
return DIVIDE(_value,_total_Site)

 

vxiaotang_1-1666764441412.png

 

Best Regards,

Community Support Team _Tang

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.