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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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