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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

How does Power BI calculate the totals? The sum does not add up in matrices

doingdata_0-1716918683557.png

The measures are really simple. Is there a more elegant way to get Power BI to correctly aggregate these numbers?

IC 2023 = CALCULATE(Employee[All Count],Employee[Management Level]="Individual Contributor",'Employee'[Year]=2023)
All Count
CALCULATE(DISTINCTCOUNT('Employee'[Person Number]), USERELATIONSHIP('Dimension'[Date],Employee[Current Hire Date]))
1 REPLY 1
Syk
Super User
Super User

I'd recommend giving this a watch: https://www.youtube.com/watch?v=6rgAkejrup8

 

Essentially the total's won't sum up all the employees for each month in your current measure because that would be saying that nearly 50k people worked for this company in 2023. When in reality, it's counting the number of people there each month and the year is giving you a count of everyone that worked there in 2023. If that doesn't make ANY sense, watch that video as he articulates it much clearer.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Solution Authors