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
ImPalaBI
Helper I
Helper I

Filter users that did not attended certain courses

I have a table with users and courses, I want to filter the users that did not attended certain courses (so I can send them an email).

 

My data looks like this:

STUDENTCOURSES TAKEN
ACourse 1
ACourse 2
BCourse 1
BCourse 2
BCourse 3
CCourse 1

 

How can I get a list of students that attended Course 1 and Course 2, but did not attended Course 3? In my example table the result will be only Student A.

Also, it would be possible to have a slicer or filter where I can select different courses and get a filtered table? For example a list of students that attended Course 1, but not Courses 2 or 3.  In my example table the result will be only Student C.

Thanks in advance

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

Hi @ImPalaBI ,

 

Create a measure as below:

Measure = 
var _table=CALCULATETABLE(VALUES('Table'[COURSES TAKEN]),FILTER(ALL('Table'),'Table'[STUDENT]=MAX('Table'[STUDENT])))
Return
IF("Course 1&Course 2"=CONCATENATEX(_table,[COURSES TAKEN],"&"),MAX('Table'[STUDENT]),BLANK())

And you will see:

Screenshot 2020-11-02 122335.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @ImPalaBI ,

 

Create a measure as below:

Measure = 
var _table=CALCULATETABLE(VALUES('Table'[COURSES TAKEN]),FILTER(ALL('Table'),'Table'[STUDENT]=MAX('Table'[STUDENT])))
Return
IF("Course 1&Course 2"=CONCATENATEX(_table,[COURSES TAKEN],"&"),MAX('Table'[STUDENT]),BLANK())

And you will see:

Screenshot 2020-11-02 122335.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

Anonymous
Not applicable

Hi @ImPalaBI - Can you not use Slicer Visual and under selection Control turn off the Multi-select with CTRL?

NamishB_0-1603924703214.png

 

Hope this helps.

 

Cheers,

-Namish B

 

Thanks for the reply,

But this won´t help, if a student has taken all Courses, it will appear on all combinations of the Slicer Visual. In the example image you sent, only Student A should appear.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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