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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Moller70
Frequent Visitor

Calculate sum of hours from annother tabel between to dates

Hi.

I have 3 tabels

1 Calender

2 Employee

3 Absenteeism

Moller70_0-1677138212420.png

 

In my Calender, I have the Standard Hours per day.

In my Absenteeism I have a StartAbsenDate and StopAbsenDate

I want to calculate the sum of Standard Hours between the StartAbsensDate and StopAbsenDate per employee and use the Date from calender as a filter.

 

I have been trying this:

AbsenHours =
SUMX (
    FILTER (
        'XYC Absenteeism',
        'XYC Absenteeism'[StartAbsenDate] <= 'XYC Calender'[Date]
            && 'XYC Absenteeism'[StopAbsenDate]>= 'XYC Calender'[Date]
    ),
    'XYC Calender'[XYC Standard hours]
)
 
But I can not get i working.
 
Please Help.
 

 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @Moller70 ,

 

Check if this video would help you in your case https://youtu.be/6JA6uy3ZRBA

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

1 REPLY 1
Idrissshatila
Super User
Super User

Hello @Moller70 ,

 

Check if this video would help you in your case https://youtu.be/6JA6uy3ZRBA

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




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