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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rpattan
Advocate I
Advocate I

Lookup between two tables

 

Hi,

 

Good Day..!

 

I have two tables named 1. Certificates 2. Delta. The Certificates table consists of employees who hold the certificates, and the Delta table consists of those who are quarter wise attending the interval exams for such certifications in order to keep them unexpired.

 

I'm looking for those users who are missed to attend the interval exams on quarter basis.

 

Note: All certifications are having certified dates. But those dates are not suppose to consider.

 

 Certificates Data:                                    Delta Data:

 Certificates DataCertificates Data           Delta DataDelta Data

*Relationship between the two tables may not possible since there is no unique strings. 

The output shall be UserID, Certificates columns from Certificates table and Missing Quarter as selected from date dimension table. Like Below; 

Output.PNG

 

I've created calculated column as below;

 

Spoiler
Missing Delta =
CALCULATE (
COUNTROWS( Deltas ),
FILTER ( ALL ( Deltas ), Certifications[Certificates] = Deltas[Delta Name] )
)

Once the data mathed then I'm applying the below DAX for counting.

Spoiler
Missing Delta Count =
CALCULATE ( COUNTROWS ( Certifications), Certifications[Missing Delta] = BLANK () )

I'm getting the missing users data, but it is comparing with delta table dates, but I'm expecting that the data should compare with only expected quarter (Q1 2018) from Delta table. Because an user could have attended the delta course in 2017/Q4 and may not attend in 2018/Q1. 

 

Please let me know for more understanding the problem.

 

Thanks

RK.

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi @rpattan,

 

I hope your data isn't sensitive. Please be aware of your privacy.

Try this formula please. I didn't get the exact number you wrote. But I checked the answer.

Please also check out the demo in the attachment.

Measure 2 =
CALCULATE (
    COUNTROWS ( Certifications ),
    FILTER (
        Certifications,
        NOT Certifications[UserID & Certification] IN VALUES ( Deltas[UserID & Delta Name] )
    )
)

Best Regards,

Dale

Community Support Team _ Dale
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

6 REPLIES 6
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @rpattan,

 

Did it work?

 

Best Regards,

Dale

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

Hi @v-jiascu-msft,

 

Thank you for the followup. I was actually on vacation. My sincere thanks for your time and workout.

 

Your solution quite close to the expected answer. This query is quite a little complex in understanding, here I am attaching the PBIX file with actual data. Therefore you could understand in detail.

 

Request to open the pbix.file attached. Explanation given in the file.

 

PBIX File: 

https://drive.google.com/file/d/1vmHKwf_3E9u4xmi38vzu44s2mLqVutxQ/view?usp=sharing

 

Excel File:

https://drive.google.com/file/d/1d1zFZOzUgBXtOmDWJCn-tSgt8TxiU20C/view?usp=sharing

 

Thank you for your time. Appreciate.

 

Regards

RK.

 

 

Hi @rpattan,

 

I hope your data isn't sensitive. Please be aware of your privacy.

Try this formula please. I didn't get the exact number you wrote. But I checked the answer.

Please also check out the demo in the attachment.

Measure 2 =
CALCULATE (
    COUNTROWS ( Certifications ),
    FILTER (
        Certifications,
        NOT Certifications[UserID & Certification] IN VALUES ( Deltas[UserID & Delta Name] )
    )
)

Best Regards,

Dale

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

Dear Team

 

I having Similar issue in different Way

I am Having Unique data set Where i wantd to map the sales data ( But Sales data in in Day format..Which is showin in above Issue)

 

Requesting you please suggues me how to map day wise sales to Unique consumer Data

 

 

Thank You @v-jiascu-msft

 

It works. Thanks again for your time and patience.

 

Regards

RK

v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi @rpattan,

 

Please check out the demo in the attachment. The measure could be the one below.

Measure =
VAR planQuarter =
    VALUES ( Delta[Quarter Obtained] )
VAR attended =
    CALCULATETABLE (
        VALUES ( Delta[Quarter Obtained] ),
        FILTER (
            Delta,
            [User Sys ID] = MIN ( 'Certificates'[EMP User ID] )
                && [Delat Name] = MIN ( 'Certificates'[Cert] )
        )
    )
RETURN
    CONCATENATEX (
        FILTER ( planQuarter, NOT [Quarter Obtained] IN attended ),
        [Quarter Obtained],
        "-"
    )
Lookup_between_two_tables

Best Regards,

Dale

 

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors