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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dc7669
Resolver I
Resolver I

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.


Follow on LinkedIn
@ 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.


Follow on LinkedIn
@ 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.


Follow on LinkedIn
@ 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.