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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
rosscortb
Post Patron
Post Patron

Monthly Overtime instead of overall sum total

Hello, I am creating an employee page that shows the last position, last location etc.

On the same page I want to have the employees monthly Overtime but everytime it just shows the total overall overtime instead of that employee I selected in the filter. Any Ideas? Ross

 

Do I need a measure?

 

Untitled.png

2 REPLIES 2
Anonymous
Not applicable

try this measure. I can't be 100% certain this will do what you need without a sample dataset.

 

Assumes that Month is abbreviated month name i.e. JAN/FEB/MAR rather than full name or number.

If full name then change "MMM" to "MMMM"

For month number change FORMAT(TODAY(),"MMM") to MONTH(TODAY())

 

Assumes that you are selecting a specific employee number from a slicer

 

=CALCULATE(
	SUM('DB Overtime Master'[Total]),
	FILTER('DB Overtime Master',
		'DB Overtime Master'[Month] = FORMAT(TODAY(),"MMM")
		&& 'DB Overtime Master'[Year] = YEAR(TODAY())
		&& RELATED('DB Headcount'[Name]) = SELECTEDVALUE('DB Headcount'[Name])
	)
)
PattemManohar
Community Champion
Community Champion

@rosscortb Please provide the sample data in copiable format to suggest any solution.




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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