Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
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
Solved! Go to Solution.
Hi @emma313823 ,
Here is a sample data I made. I believe that this measure could accomplish what you described in the forum.
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
Now, we can go to the filter, and drag Measure into the filter. I circled those parts in the below picture.
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”.
And now we get a table all starts with EGG or FGG followed by the data.
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.
Hi @emma313823 ,
Here is a sample data I made. I believe that this measure could accomplish what you described in the forum.
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
Now, we can go to the filter, and drag Measure into the filter. I circled those parts in the below picture.
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”.
And now we get a table all starts with EGG or FGG followed by the data.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |