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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jcastr02
Post Prodigy
Post Prodigy

Divide 2 numbers

Divide Coaching New.pngI have table with two count types -     Coaching & Headcount.  I am trying to get a measure that will divide    ( sum of coaching / sum of headcount)   See attached.  

 

Example, Under Location Chandler

 

ChandlerCoachingHeadcount  Calculation Needed w Measure
9/1/202071728.0975
10/1/2020303737.4111
11/1/2020111752.1476
12/1/2020252727.3466

       

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@jcastr02 

Add this as a new measure:

Measure = 
DIVIDE(
    CALCULATE( SUM(Table[Count]), Table[Count Type] = "Coaching"),
    CALCULATE( SUM(Table[Count]), Table[Count Type] = "Headcount")
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
jcastr02
Post Prodigy
Post Prodigy

@Fowmy @ToddChitt   Thank you both 🙂 this worked!

ToddChitt
Super User
Super User

You posted this question in the Power Query forum. Are you looking for an answer to apply in Power Query? It's really NOT the best tool for this job. @Fowmy seems to have the best suggestion: build this solution with DAX measures, not in Power Query.




Did I answer your question? If so, mark my post as a solution. Also consider helping someone else in the forums!

Proud to be a Super User!





Fowmy
Super User
Super User

@jcastr02 

Add this as a new measure:

Measure = 
DIVIDE(
    CALCULATE( SUM(Table[Count]), Table[Count Type] = "Coaching"),
    CALCULATE( SUM(Table[Count]), Table[Count Type] = "Headcount")
)

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Kudoed Authors