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

filter rows from custom query based on a filter condition

How to filter a rows from a query(appended from 2 queries) in query editor based on a condition similar to the following DAX in M language:

=RELATED(Employee[ID])

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

RELATED() function returns a single value that is related to the current row. How do you want to filter rows via RELATED? Do you combine two tables via "Merge" in Query Editor? And you only want to get rows that are RELATED from two tables, right? If so, please click the EmployeeID fileds and choose "Inner Join" in the drop down list.

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

RELATED() function returns a single value that is related to the current row. How do you want to filter rows via RELATED? Do you combine two tables via "Merge" in Query Editor? And you only want to get rows that are RELATED from two tables, right? If so, please click the EmployeeID fileds and choose "Inner Join" in the drop down list.

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you and i was going to try the join option next.

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.