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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Syndicate_Admin
Administrator
Administrator

Gallery is not searching as expected

I have an excel connection to a table, Table1, which has 3 columns: col1, col2, and col3.

 

 

For each item, i did 

"col1: " & ThisItem.col1

or

"col2: " & ThisItem.col2

just to make it easier to read.

 

 

For my Gallery, the Items field is coded like this

SortByColumns(Search(Table1,TextInput.Text,"col1"),"col1",If(SortDescending1,SortOrder.Descending,SortOrder.Ascending))

 

If i search "2" in the text input, nothing appears even though the first item shown in the image should appear.

 

Whats wrong? Any help appreciated!

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Hi , @doveshampoo 

You may try to use this code :

SortByColumns( Search(AddColumns( Table1,"col1-Text",Text(col1)),TextInput.Text,"col1-Text") "col1",If(SortDescending1,SortOrder.Descending,SortOrder.Ascending))

 

If this reply can help you , you can click mark this reply as solution, thanks in advance!


Best Regards,

Yueyun Zhang

having "col1: x" shouldn't matter right?

 

even if I remove 

"col1: " &

from the formatting, the search doesn't work

Hi, @doveshampoo 

Sure , this is no matter with your "col1: x" , This is just a item in your gallery control.

Dose the before code can not solve your issue?

 

If this reply can help you , you can click mark this reply as solution, thanks in advance!


Best Regards,

Yueyun Zhang

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors