cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

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
Super User IV
Super User IV

@sedric1 , This table will give all those users

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
Super User IV
Super User IV

@sedric1 , This table will give all those users

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors