Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I 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
| Chandler | Coaching | Headcount | Calculation Needed w Measure |
| 9/1/2020 | 71 | 728 | .0975 |
| 10/1/2020 | 303 | 737 | .4111 |
| 11/1/2020 | 111 | 752 | .1476 |
| 12/1/2020 | 252 | 727 | .3466 |
Solved! Go to Solution.
@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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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.
Proud to be a 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 🙂
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |