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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.

Reply
danielru
Frequent Visitor

how to filter a table visual

Hi, 

 

I have 3 tables- customers, products and sales.

 

My table visual has the following columns from:

 

customer- customer name, customer id;

 

products- product id, product name, product price;

 

sales- product id, quantity, sales rep name.

 

Now, I want to filter the visual such that all rows where 'customer name' is not equal to 'sales rep name'. Remember that these column in the table visual come from the customer and sales source tables respectively. How would you filter the table visual for this requirement? 

 

I have other filters on this table visual and tried to apply a new measure which exploded my table from 3 rows to an error message that I exceeded the limits.

 

I would be grateful for any advice. Thank you so much!

 

Regards,

 

Daniel

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@danielru 

 

You can create a calculated column in the sales table:

 

IsCustomerNotSalesRep =
IF (
RELATED(Customers[customer name]) <> Sales[sales rep name],
1,
0
)

 

Once you have the calculated column, you can apply a filter to your table visual to only include rows where this column is 1.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
danielru
Frequent Visitor

You are a legend!!!! Thank you so much.

bhanu_gautam
Super User
Super User

@danielru 

 

You can create a calculated column in the sales table:

 

IsCustomerNotSalesRep =
IF (
RELATED(Customers[customer name]) <> Sales[sales rep name],
1,
0
)

 

Once you have the calculated column, you can apply a filter to your table visual to only include rows where this column is 1.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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