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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Vitaliy
Helper I
Helper I

Calculates between two tables that are linked by a third table

Hi !

Need your help..
I have such a data model in my test.pbix file:

Screenshot_1.png

 

It is necessary to build a simple table of the following type (by every user, by every day):

Screenshot_2.png

 

What measure (or should there be a column?) should I create in order to correctly count the time of worklogs for each day and each user in the table?
That is, in the LogHours column, the time of worklogs is now line by line the same for all users in those days when it is, but it is not, in fact (
Screenshot_3.png

 

Or it would be better to build another data model, since In the future, I will need to add planned working hours (PlanHours column) for each day and consider overtime/ not-logged time as LogHours - PlanHours?
I would be very grateful for the help or advice.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Vitaliy 

You need to change your data model as below:

add a username dim table and then create the relationship as below:

2.JPG

Then drag the username from username dim table instead of "vacations_calendar" [Login]

Result:

3.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @Vitaliy 

You need to change your data model as below:

add a username dim table and then create the relationship as below:

2.JPG

Then drag the username from username dim table instead of "vacations_calendar" [Login]

Result:

3.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks, it helps!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.