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
ashmitp869
Helper II
Helper II

Need help with Dax to calculated - from two different tables field comparision ?

Hi, 

I've 2 tables with no relationship between them, I would like to create a measure to add one column Qualified in table DSR by checking the Timesheet Date with the Date Start and Date End.

will take the red one not yellow 

ashmitp869_0-1715907856901.png

 

 

Output result will be like below image

ashmitp869_1-1715907857098.png

 

The Employee Code , Skill Code (DSR) should match with Employee Code , Qualifications ID in (Qualifications table) 

 

The logic is 

Qualified =

CASE WHEN Timesheet Date < Date End then "Learner"

         WHEN Timesheet Date >Date Expiry then "Not Qualified"

         WHEN Timesheet Date >=Date End and isnull(Date Expiry) then "Not Qualified"

         WHEN Timesheet Date >= Date End and Timesheet Date <= Date Expiry then "Qualified"

 

 

Notes : Multiple rows in DSR_DNQ and mutiple rows in Qualifications Table thus I avoid to do merge DSR with Qualifications as it duplicating.

 

I've included the pbix :

https://github.com/suvechha/samplepbi/blob/main/samplefile1.pbix

 

@lbendlin will you able to help me  

Thanks

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_0-1715952205583.png

 

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.

Top Solution Authors
Top Kudoed Authors