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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
amirabedhiafi
Impactful Individual
Impactful Individual

Difference between times from different source tables

Hi All,

 

Amira Bedhiafi
Full Stack Business Intelligence Consultant @Capgemini
1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @amirabedhiafi ,

 

I guess you want to be able to see this by employee/date? If so, you will need to create a single dimension table for employees that relates to both FACT-Service and FACT-LTSS as, currently, there's no common table for Power BI to use.

 

I would also combine your Date and Time fields in both fact tables to DateTime. You can then use DATEDIFF on these values with the interval argument being MINUTE. Something like this:

timeDiff =
DATEDIFF(
    FACTService[Start DateTime],
    FACTLTSS[Start DateTIme],
    MINUTE
)

 

Filter your visual on timeDiff, where it only shows timeDiff values > 8.

 

If you can provide some sample data from your model, or the model itself if there's no sensitive data in it, then I can validate the above and correct it if it doesn't work OOTB.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

1 REPLY 1
BA_Pete
Super User
Super User

Hi @amirabedhiafi ,

 

I guess you want to be able to see this by employee/date? If so, you will need to create a single dimension table for employees that relates to both FACT-Service and FACT-LTSS as, currently, there's no common table for Power BI to use.

 

I would also combine your Date and Time fields in both fact tables to DateTime. You can then use DATEDIFF on these values with the interval argument being MINUTE. Something like this:

timeDiff =
DATEDIFF(
    FACTService[Start DateTime],
    FACTLTSS[Start DateTIme],
    MINUTE
)

 

Filter your visual on timeDiff, where it only shows timeDiff values > 8.

 

If you can provide some sample data from your model, or the model itself if there's no sensitive data in it, then I can validate the above and correct it if it doesn't work OOTB.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.