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! Learn more

Reply
matvey364
Regular Visitor

Two tables in one dataset: Compare and Analyze

Hi all,

 

I am really strugling with something, and would appreaciate any help. I have 2 tables in one dataset:

 

Table One: List of users with a unique idintifier who have completed courses. One user can be listed multiple times as he completed different courses.

 

Table Two: Master list of users with a unique identifier + a set of additional fields. Every user is listed once.

 

I am trying to build visuals/analytics on how many % of users from Table Two have completed specific course from Table 1 and filter it by fields in Table two, like country and etc. I am also trying to generate list from Table two who HASN'T completed a specific course and is not listed in Table TWO.

 

Any help would be greatly appreaciated.

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @matvey364 

Create relationship between two tables

6.png

create meausres in table two

Measure = IF(MAX('table one'[user id])=MAX('table two'[user id]),1,0)

Measure 2 = COUNTX(FILTER(ALLSELECTED('table two'),[Measure]<>0),[Measure])

Measure 3 = CALCULATE(COUNT('table two'[user id]),ALLSELECTED('table two'))

Measure 4 = [Measure 2]/[Measure 3]

4.png5.png

 

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
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
v-juanli-msft
Community Support
Community Support

Hi @matvey364 

Create relationship between two tables

6.png

create meausres in table two

Measure = IF(MAX('table one'[user id])=MAX('table two'[user id]),1,0)

Measure 2 = COUNTX(FILTER(ALLSELECTED('table two'),[Measure]<>0),[Measure])

Measure 3 = CALCULATE(COUNT('table two'[user id]),ALLSELECTED('table two'))

Measure 4 = [Measure 2]/[Measure 3]

4.png5.png

 

 

Best Regards

Maggie

 

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