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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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