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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sedric1
Helper III
Helper III

need help with a distinct union type measure

I have two tables; one is a summarized table called "Enrollment Summary" that contains a "User ID" column and an "Enrolled" column with Yes/No answers. 

Then I have a second summarized table called "Missing Enrollments" which also has a User ID column.

 

I am trying to get the full listing or count of distinct User Ids on both tables. The only caveat is that on the "Enrollment Summary" table, I want to filter those user IDs to only union where enrolled = No. All help is appreciated!

 

Enrollment Summary  Missing Enrollments 
     
User IDEnrolled User ID 
User AYes  User B 
User bNo User D 
User CYes    
User BNo   
User AYes    
  Expected Result:Count = 2 
  User ID  
  User B  
  User D  
     
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sedric1 , This table will give all those users

distinct(union(summarize(filter(Enrollment, [Enrolled] ="No"),[User ID]),all(Missing[User])))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@sedric1 , This table will give all those users

distinct(union(summarize(filter(Enrollment, [Enrolled] ="No"),[User ID]),all(Missing[User])))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.