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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors