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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Ask about query

Hi all,

 

When I have data like Products and Transactions, if in Transform Data, the Products is filtered by some condition, lets say there is Active column then I filtered "Yes" only, then I press confirm to close the Transform data screen, is the Transaction table after I put Relationship on Product key, will it be filtered as well  in report ? or it will have rows of Blanks product ?

 

If yes, how to make it filtered as well ? need to create new table with InnerJoin ? is there any other way ? 

 

Thanks

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

From my test, after filtering Product table in Power Query, the original matched value in Transaction table would be changed into blank:

12.30.1.1.PNG

You could use the following formula to creata a new table:

 

Table = FILTER('Transactions', [ID] in VALUES(Products[ID]))

 

 

Or apply the below measure to Filter pane like this:

 

Measure =
IF ( MAX ( 'Transactions'[ID] ) IN VALUES ( 'Products'[ID] ), 1, 0 )

 

12.30.1.2.gif

Please take a look at the pbix file here.

 

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

Fowmy
Super User
Super User

@Anonymous 

If you are filtering the Product table with Active ="Yes" then you need to do the same on the transaction table as well in Power Query, if not, once the relationship is created, you see blank values for missing products.

________________________

If my answer was helpful, please click Accept it as the solution to help other members find it useful

Click on the Thumbs-Up icon if you like this reply 🙂


Website YouTube  LinkedIn


Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hi @Fowmy 

 

But in my Transaction table there is only Product Id,  the Active is in Product table, how to put a relationship to filtered some field in other table in Power Query ?

 

Thanks,

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.

Top Solution Authors