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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Dataset Comparison

Hello,

 

I have datasets similar to the below.

 

Dataset 1 - Timesheet Booking Data

DateHours
01/02/202211
02/02/202242
03/02/202253
04/02/202232
05/02/202214
06/02/202266
07/02/202255
08/02/202277

 

Dataset 2 - Timesheet Weekly Summary

Week Ending DateHours Summary
03/02/2022140
10/02/2022220

 

I am trying to compare dataset 1 & 2 to make sure the hours booked during the week match the hours summary dataset. 

 

Work weeks run from Friday - Thursday. Therefore week ending date 03/02/2022 would be a summary of hours between dates 28/01/2022 - 03/02/2022.

 

Dataset 2 - Timesheet Weekly Summary shows a summary of all hours booked during that week corrisponding to a week ending date.

 

DAX Measured needed

 

1. SUM of of all hours per working week in dataset 1 

 

I can then compare this sum of hours per week along side my Dataset 2 - Timesheet Weekly Summary figure.

1 ACCEPTED SOLUTION
CNENFRNL
Community Champion
Community Champion

Simple enough since the Week Ending Date column is available,

CNENFRNL_0-1654852476755.png

 

For fun only, a showcase of powerful List.PositionOf(),

CNENFRNL_1-1654853375583.png

 

Another showcase of powerful Excel worksheet formula,

CNENFRNL_2-1654854154454.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

Simple enough since the Week Ending Date column is available,

CNENFRNL_0-1654852476755.png

 

For fun only, a showcase of powerful List.PositionOf(),

CNENFRNL_1-1654853375583.png

 

Another showcase of powerful Excel worksheet formula,

CNENFRNL_2-1654854154454.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

Smart cookie 🙂

Thank you very much!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors