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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
stribor45
Post Prodigy
Post Prodigy

Adjust Filter function

I am trying to adjust my filter function but it might be related to an error because I am filtering based on different related tables.  

 

FILTER ( 'Table A, 'Table A'[Name] <> "John" && RELATED('Table A'[Call Time]) = "Evening")

 

Table A is related to my Calendar Time in many to one relationship and this is what it looks like (see below). Is there a way to write DAX that picks up all rows whose name is not JOHN and whose related table (Calendar time table ) has Evening column set to "Evening"

 

stribor45_0-1696525478239.png

stribor45_1-1696525586728.png

 

 

 

 

1 ACCEPTED SOLUTION

sorry i think I need coffee badly 🙂

 

fixed it...this is my bad

 

FILTER ( 'Table A', 'Table A'[Name] <> "John" && RELATED('Calendar Times'[Evening]) = "Evening")

View solution in original post

4 REPLIES 4
stribor45
Post Prodigy
Post Prodigy

The column Table A [Call Time] either doesn't exists or doesn't have relationship to any table available in the current content. 

 

table A has many to one relationship with Calendar Time table

@stribor45 

In the screenshot it is called "Evening" which one is correct?

sorry i think I need coffee badly 🙂

 

fixed it...this is my bad

 

FILTER ( 'Table A', 'Table A'[Name] <> "John" && RELATED('Calendar Times'[Evening]) = "Evening")

tamerj1
Super User
Super User

@stribor45 

Your filter is correct. What error are you receiving?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.