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
mnarveson
Regular Visitor

Filter by status

I am very new to all of this BI material, but I love it. I am working with some survey data and trying to clean it up in Power Query before I use it. I have the relationships linked by respid on 4 different response tables to a response control. On the response control table I have status and want to filter out only those that were completed. It filters on the response control table but leaves the records on the other 4 tables. What am I doing wrong here?Before filtered by completeBefore filtered by completeBefore filtered by completeBefore filtered by completeAfter filtered by completeAfter filtered by completeAfter filtered by completeAfter filtered by complete

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

@mnarveson,

 

You may use code below to add a custom column to those 4 tables.

let
    r = _
in Table.MatchesAnyRows(
        response_control,
        each [respid] = r[respid]
        and [status] = "complete"
        )
Community Support Team _ Sam Zha
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-chuncz-msft
Community Support
Community Support

@mnarveson,

 

You may use code below to add a custom column to those 4 tables.

let
    r = _
in Table.MatchesAnyRows(
        response_control,
        each [respid] = r[respid]
        and [status] = "complete"
        )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AlexisOlson
Super User
Super User

Relationships in the model don't affect anything in the query editor.

 

The process is roughly like this:

 

Connect to Data --> Process Data in Query Editor --> Load Data to Model --> Create Relationships and Refine Model

 

The arrows only go in one direction.

 

 

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.