web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Power App Searches

(0) ShareShare
ReportReport
Posted on by 3

I am totally new to Power Apps. I have yet to start learning but we have a number of Power Apps already used. One of them has a search button set up which does not work well. Before I dive in to try to understand this I wondered if one of the more experienced/technical Power App users might be able to give me an opinion on whether this search script (below) is efficient, or if there are any obvious ways to make a quick improvement.

I know this is a vague request, and any responses would be appreciated.

Thanks.

 

-------------------------------------------------------------------------------------------

If(
BrowseSearchApprovedCheckbox.Value = true,
SortByColumns(
Filter(
'Honour Master Data',
"Approved" in LookUp(
Hon_TransactionHelper,
ID * 1 = SPID * 1,
HonourApprovedFilter
)
),
"Created",
SortOrder.Descending
),
If(
IsBlank(BrowseTextSearchBoxGeneral.Text),
SortByColumns(
'Honour Master Data',
"ID",
SortOrder.Descending
),
If(
IDCheckBox.Value = true,
SortByColumns(
Filter(
'Honour Master Data',
ID = BrowseTextSearchBoxGeneral.Text
),
"ID",
SortOrder.Descending
),
SortByColumns(
Filter(
'Honour Master Data',
BrowseTextSearchBoxGeneral.Text in Title || BrowseTextSearchBoxGeneral.Text in Entity || BrowseTextSearchBoxGeneral.Text in Team || BrowseTextSearchBoxGeneral.Text in Status || BrowseTextSearchBoxGeneral.Text in Created || BrowseTextSearchBoxGeneral.Text in Description || BrowseTextSearchBoxGeneral.Text in Value || BrowseTextSearchBoxGeneral.Text in Currency || BrowseTextSearchBoxGeneral.Text in Payee || BrowseTextSearchBoxGeneral.Text in 'Sub-team' || BrowseTextSearchBoxGeneral.Text in 'Created By'.DisplayName || BrowseTextSearchBoxGeneral.Text in ID,
If(
BrowseSearchApprovedCheckbox.Value = true,
"Approved" in LookUp(
Hon_TransactionHelper,
ID * 1 = SPID * 1,
HonourApprovedFilter
),
"" in Status
)
),
"Created",
SortOrder.Descending
)
)
)
)

 

-------------------------------------------------------------------------------------------

 

 

 

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @nal_pa ,

     

    I'm assuming the search function does not work when BrowseSearchApprovedCheckbox has been checked, correct?

     

    The below formula should get you a long way there in fixing this and making the formula more compact:

    SortByColumns(
    	Search(
    		AddColumns(
    			Filter(
    				'Honour Master Data',
    				! BrowseSearchApprovedCheckbox.Value || "Approved" in LookUp(Hon_TransactionHelper,	ID * 1 = SPID * 1, HonourApprovedFilter)
    			),
    			"CreatedByDisplayName",
    			'Created By'.DisplayName
    		),
    		BrowseTextSearchBoxGeneral.Text,
    		"Title", "Entity", "Team", "Status", "Created", "Description", "Value", "Currency", "Payee", "Sub-team", "CreatedByDisplayName", "ID"
    	),
    	"Created",
    	SortOrder.Descending
    )

     

  • nal_pa Profile Picture
    3 on at

    Thanks. i will have a look t that

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard