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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
JDSang
Frequent Visitor

Calculated Column / Measure not working with date filters

Hi

 

i'm trying to show employee time vs total team time.

 

I'm able to work out the total time logged by a team, but when I apply a date selection (via slicer) it does not update the calculation. the below table shows Team and the amount of time logged (left), and employee time vs team (right). the date slicer is set to 2021, which is reflected in the left columns and the "employee time" column, however the "Team Total" column should be the same as the "Team Time for Period" column

 

Current Year   Current YearTotal
TeamTeam time for period TeamEmployeeEmp loyee Time   Team Total 
Team1      23,204.50 Team 1Emp 1            493.08  129,247.00
Team2      20,676.00 Team 1Emp 2            376.75  129,247.00
Team3        1,226.83 Team 1Emp 3            574.83  129,247.00

 

I have tried 

Measure = CALCULATE(SUM('Time'[Time Logged]), ALLEXCEPT('Time', 'Time'[Team]))
Column = CALCULATE(SUM('Time'[Time Logged]), FILTER('Time', 'Time'[Team] = EARLIER('Time', 'Time'[Team])) and various variations of this.
 
but no matter what i try I cannot get the team total to line up. can someone please help?
 
Thanks in advance
 
James
1 ACCEPTED SOLUTION
JDSang
Frequent Visitor

I got this to work...

 

Created a Measure to work out time logged by individual, another measure to work out team total:

 

Team Measure = CALCULATE([Individual Time], REMOVEFILTERS('Table'), VALUES('Table'[Team], VALUES('Date Table'))

View solution in original post

1 REPLY 1
JDSang
Frequent Visitor

I got this to work...

 

Created a Measure to work out time logged by individual, another measure to work out team total:

 

Team Measure = CALCULATE([Individual Time], REMOVEFILTERS('Table'), VALUES('Table'[Team], VALUES('Date Table'))

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.