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
Anonymous
Not applicable

Help with Filtering

Hello all, 

 

I am making a report looking at attended events.

 

However I am trying to Filter on a specific event, and then show who attened that event, and which other events they have attened. 

 

The issue is that because im filtering from the same collum as the results i am trying to show, when i filter on Event 1, it shows me who attened, but not the other events they attened. 

 

Any help is appreciated!

 

thanks

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

Hi @Anonymous 

You could build a Slicer table by event column and build a measure and use filter field to achieve your goal.

My Sample Table:

1.png

Slicer Table:

 

Table 2 = VALUES('Table'[Event])

 

Measure:

 

Measure = 
Var _Sel = SELECTEDVALUE ( 'Table 2'[Event] )
RETURN
CALCULATE (
    MAX ( 'Table'[User] ),
    FILTER (
        ALLSELECTED ( 'Table'[Event] ),
        'Table'[Event] = _Sel
    )
)

 

 Drag measure into Filter Field and show items when the value is not blank.

When we select Event1 it will show A,C,D and all events they have.

2.pngYou can download the pbix file from this link: Help with Filtering

 

Best Regards,

Rico Zhou

 

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

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hi,

See if my solution here helps - Filter a column of a Pivot Table on a certain condition but also show other items from that column.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-rzhou-msft
Community Support
Community Support

Hi @Anonymous 

You could build a Slicer table by event column and build a measure and use filter field to achieve your goal.

My Sample Table:

1.png

Slicer Table:

 

Table 2 = VALUES('Table'[Event])

 

Measure:

 

Measure = 
Var _Sel = SELECTEDVALUE ( 'Table 2'[Event] )
RETURN
CALCULATE (
    MAX ( 'Table'[User] ),
    FILTER (
        ALLSELECTED ( 'Table'[Event] ),
        'Table'[Event] = _Sel
    )
)

 

 Drag measure into Filter Field and show items when the value is not blank.

When we select Event1 it will show A,C,D and all events they have.

2.pngYou can download the pbix file from this link: Help with Filtering

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

amitchandak
Super User
Super User

@Anonymous , Try a measure like

measure =
var _tab = summarize(filter(allselected(Table), table[user]))
return
calculate([measure], filter(all(Table), Table[user] in _tab))

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.