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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Community Champion
Community Champion

@stribor45 

Your filter is correct. What error are you receiving?

Helpful resources

Announcements
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.