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
ashmitp869
Post Partisan
Post Partisan

Dax calculation help required when comparing two columns from two different tables with no relation?

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 Skill Level and Skill Qualified.

 

DSR and Qualifications  is M:M relationship

 

ashmitp869_3-1715922534270.png

 

 

 

 

Output result will be like below image

ashmitp869_1-1715922284250.png

 

Created a calculated columns but not working

 

 

 

Qualified = 
VAR __Dkey = SELECTEDVALUE(DSR_DNQ[Key]) 
VAR __Qkey = SELECTEDVALUE(Qualifications[Key]) 
VAR _SL = SELECTEDVALUE(Qualifications[Skill Level])
VAR _SQ = SELECTEDVALUE(Qualifications[Skill Qualified])
VAR __RESULT =
   IF(__Dkey = __Qkey && _SL ="L",
        "Learner",IF(__Dkey = __Qkey && _SQ ="Q","Qualified","Not Qualified"))
        
RETURN
    __RESULT

 

 

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

Thanks

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ashmitp869 ,

I opened your .pbix file and created a calculated column.

Qualified =
IF (
    'DSR_DNQ'[Key] = "OBRIJA-8",
    "Learner",
    IF ( 'DSR_DNQ'[Key] = "OBRIJA-1", "Qualified", "Not Qualified" )
)

Then I think you can get what you want.

vyilongmsft_0-1716169463174.png

 

 

 

Best Regards

Yilong Zhou

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

1 REPLY 1
Anonymous
Not applicable

Hi @ashmitp869 ,

I opened your .pbix file and created a calculated column.

Qualified =
IF (
    'DSR_DNQ'[Key] = "OBRIJA-8",
    "Learner",
    IF ( 'DSR_DNQ'[Key] = "OBRIJA-1", "Qualified", "Not Qualified" )
)

Then I think you can get what you want.

vyilongmsft_0-1716169463174.png

 

 

 

Best Regards

Yilong Zhou

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

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors