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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
dc7669
Helper II
Helper II

Partial string search on a Power BI report

Hi all,

 

Say I am displaying this table in Power BI.  

 

NamePhone
John Doe111-111-1111
Jane Done222-222-2222
Smith John333-333-3333

 

Is it possible to provide a search box for the name field that let users to type in string such as "John" and the table will return with the lines of "John Doe" and "Smith John"?  How can it be done? 

 

Thanks.

 

dc7669

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

Hello @dc7669 ,

You can do this using slicer, click the 3 points, and click Search.

Capture.PNG

Did I answer your question? Mark my position as a solution!
Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

6 REPLIES 6
camargos88
Community Champion
Community Champion

Hello @dc7669 ,

You can do this using slicer, click the 3 points, and click Search.

Capture.PNG

Did I answer your question? Mark my position as a solution!
Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



camargos88
Community Champion
Community Champion

Hello @dc7669 ,

You can do this using slicer, click the 3 points, and click Search. After you select them, the table will be filtered.

Capture.PNG

Did I answer your question? Mark my position as a solution!
Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Greg_Deckler
Super User
Super User

For your selector, you would use the SEARCH or FIND functions.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler I think your solution probably will work.  But, I am not too familiar with "Measure", thinking that is more related to time/geography based hierarchy.  @camargos88 solution is easier for me to understand.  Thanks for sharing! 

Greg_Deckler
Super User
Super User

Here is another example attached.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

Yes, you would want what I refer to as a complex selector. I will attach examples. Basically, it is a measure that returns 1 or 0 based upon whatever condition you specify. It is based on Inverse Selector.

 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Inverse-Selector/m-p/648290#M325

 

Attached complex selector examples.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
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.