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

DAX measure SELECTEDVALUE to FILTER a table excluding SELECTEDVALUE

I have a table which lists team members organising events. I would like to create a measure that allows me to select one of the team members and filters a matrix to display the Other Team Members that are organising the events.

I tried to use SELECTEDVALUE and LOOKUPVALUE but they error out due to the multiple events. 
Any ideas or assistance most appreciated.

Team-Event table

IdTeamEvent
1JaneA
2VicB
3BobB
4PamC
5VicA
6NelB
7VicC
8PeteB
9BobA
10NelC


Slicer showing all the team members

Example: select 'Nel' who is organising event B and C

Team members
Jane
Vic
Bob
Pam
Nel
Pete

 

Example: select 'Nel' who is organising event B and C returns an Expected result

Other Team Members filtered by event B and C but excludes 'Nel'

EventTeam
BBob
BPete
BVic
CPam
CVic
6 REPLIES 6
wdx223_Daniel
Super User
Super User

wdx223_Daniel_0-1611538817289.png

 

Thanks @wdx223_Daniel I wonder if there's a way to use this measure to filter a matrix visual? In the matrix I'd like to display a list of other team member names and the count of events they are linked to.

witbi_0-1611615104140.png

 

wdx223_Daniel_0-1611621784195.pngwdx223_Daniel_1-1611621798465.png

 

Thanks @wdx223_Daniel. Is there a way to make the table work without explicitly showing event? Just a table with Other team members and count of events they are linked to?

witbi_0-1611693461404.png

 



 

can use this code to get the result directly without viusal filters

wdx223_Daniel_0-1611709541611.png

 

lbendlin
Super User
Super User

I would recommend using a disconnected table for the team member slicer. Then

- get the selectedvalue() from the slicer (make sure it is single selection)

- collect all events for that team member

- collect all team members for these events

- remove the selected value via EXCEPT or FILTER

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.