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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
emma313823
Helper V
Helper V

Is there any visual that could accomplish this?

Hi

 

I have a table that includes lots of info like the customer, part number, sales, commissions, etc. My salespeople often need to search on multiple part number lead-offs. By this I mean a part number could be EGG.TT.123456 or FGG.TT.56789. I need to see if there is a visual that would allow the ability to filter off on just EGG.TT, select all that appears, then a second search for FGG.TT, select all. The end result would allow the user to have all the EGG.TT and FGG.TT part numbers showing, then they could export that data.

 

The part number column is set to TEXT.

 

I thought the slicer would work, but it does not seem to allow for this type of scenario. I also found a Filter by List visual, but this seems to require the entire part number not just the Starts With or lead off of the part number.

 

Emma

Emma
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @emma313823 ,

 

Here is a sample data I made. I believe that this measure could accomplish what you described in the forum.

10.png

 

First, I created a table with ETG, number and index. And the ETG column is the only column that matters in this problem.

 

I used the following measure:

Measure = 
VAR FilterGG = 
    
   IF( CONTAINSSTRING(MAX('Table'[ETG]),"EGG.TT") || CONTAINSSTRING(MAX('Table'[ETG]),"FGG.TT")=TRUE(),1)
   
RETURN FilterGG

This will return 1 for every row with its name begins with EGG.TT and FGG.TT

 

11.png


Now, we can go to the filter, and drag Measure into the filter. I circled those parts in the below picture.
12.png

 

Next, fill the blank with the constraints mentioned in the measure function. In this case, show items when the value is 1. Then click on “APPLY FILTER”.

13.png

And now we get a table all starts with EGG or FGG followed by the data.

14.png

The essential part of this method is to create a Boolean function to identify the beginning three letters and make sure that only those valid rows are showed.

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

1 REPLY 1
Anonymous
Not applicable

Hi @emma313823 ,

 

Here is a sample data I made. I believe that this measure could accomplish what you described in the forum.

10.png

 

First, I created a table with ETG, number and index. And the ETG column is the only column that matters in this problem.

 

I used the following measure:

Measure = 
VAR FilterGG = 
    
   IF( CONTAINSSTRING(MAX('Table'[ETG]),"EGG.TT") || CONTAINSSTRING(MAX('Table'[ETG]),"FGG.TT")=TRUE(),1)
   
RETURN FilterGG

This will return 1 for every row with its name begins with EGG.TT and FGG.TT

 

11.png


Now, we can go to the filter, and drag Measure into the filter. I circled those parts in the below picture.
12.png

 

Next, fill the blank with the constraints mentioned in the measure function. In this case, show items when the value is 1. Then click on “APPLY FILTER”.

13.png

And now we get a table all starts with EGG or FGG followed by the data.

14.png

The essential part of this method is to create a Boolean function to identify the beginning three letters and make sure that only those valid rows are showed.

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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