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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.