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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Zarlot531
Helper V
Helper V

Dividing two summed "Value" fields in a matrix (simple I know but stumping me)

So here's a simple problem that for some reason isn't working for. I want to simply dvide the summzed left value by the summed right value seen below in a measure. A column will not work for me because I group this different ways, by day, month, week, etc. It needs to happen at the matrix level. I feel like this should be a simple HoursonSite / PayrollHoursworked, but the fields don't show up. What am I missing? 

 

 

Capture77.JPG

1 ACCEPTED SOLUTION
BKirsch12
Resolver II
Resolver II

The fields only show up if they are measures. Just add an additional Sum Measure for each of your two columns. Then just divide the two measures:

 

 

Hours = SUM('Query1'[HoursOnSite])

PayrollHours = SUM('Query1'[PayrollHoursWorked])

Divide = Hours / PayrollHours


 

 

View solution in original post

2 REPLIES 2
BKirsch12
Resolver II
Resolver II

The fields only show up if they are measures. Just add an additional Sum Measure for each of your two columns. Then just divide the two measures:

 

 

Hours = SUM('Query1'[HoursOnSite])

PayrollHours = SUM('Query1'[PayrollHoursWorked])

Divide = Hours / PayrollHours


 

 

Ah silly me. WOrks like a charm, thanks. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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