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 Platform Community / Forums / Power Apps / Canvas App SQL Delegat...
Power Apps
Unanswered

Canvas App SQL Delegation warning on Multiselect Combo Box

(0) ShareShare
ReportReport
Posted on by 23

Hi All,

 

I am building a rather complex filter panel for a gallery connected to a SQL view.   The panel will be built using a number of Date Pickers and Multiselect Combo boxes.  

I have used a work around for the date delegation issues which compares numbers rather than dates and this works fine.  

The problem is I’m really struggling to find a workaround  for the Multiselect combos.  I have tried using the In function as in a Reza Dorani YouTube video but this was working on SP lists and the code does it work for SQL.  . 

Could someone please advise on a workaround.  My code for a button that creates a collection for the gallery items is pasted below.   I will need to replicate the final line for numberous comboboxes once I have a solution to the delegation issue.  


Thanks in advance 

Jamie. 

 

ClearCollect(colFlowFilters,

Filter('sqlView',

 

FileReceivedint >=Value(lblFileReceievedFromNumber_1.Text) &&FileReceivedint <=Value(lblFileReceievedToNumber_1.Text),

LastUpdateint >= Value(lblLastUpdatedFromNumber.Text)&& LastUpdateint <=Value(lblLastUpdatedToNumber.Text),

IsBlank(cboOriginator.SelectedItems.Value)||IsEmpty(cboOriginator.SelectedItems)||Originator incboOriginator.SelectedItems.Value

))

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @NotOnUrNelly76 

     

    You could try this in SQL In operator where Text is compare to Column is Delegable so in theory it should work I think 🙂

     

     

    ClearCollect(colFlowFilters,
    
    Filter('sqlView',
    
     
    
    FileReceivedint >=Value(lblFileReceievedFromNumber_1.Text) &&FileReceivedint <=Value(lblFileReceievedToNumber_1.Text),
    
    LastUpdateint >= Value(lblLastUpdatedFromNumber.Text)&& LastUpdateint <=Value(lblLastUpdatedToNumber.Text),
    
    IsBlank(cboOriginator.SelectedItems.Value)||IsEmpty(cboOriginator.SelectedItems)||Concat(incboOriginator.SelectedItems,Value,",") in Originator
    
    ))

     

     

    You may need to concat column in the same way I'm not sure how you store data in it 

     

    Contact(Orginator, Value,”,”)

  • NotOnUrNelly76 Profile Picture
    23 on at

    Hi Seb,

     

    I have added the following code into the Gallery Items and the delegation warnings have dissapeared but the filters are not working.

    Filter('UI.VW_FlowGas',IsBlank(ComboboxCanvas2.SelectedItems.Value)||IsEmpty(ComboboxCanvas2.SelectedItems)||Concat(ComboboxCanvas2.SelectedItems.Value,",") in Originator)
    The field is a text field and only one item can be selected.

    Can anyone suggest what I might be missing here.
  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    @NotOnUrNelly76 

     

     

    What Type is You Originator column, and could you provide a sample of stored data in the row please?

     

     

     

  • NotOnUrNelly76 Profile Picture
    23 on at

    Hi @SebS 

     

    The stored data type is  (varchar(100),null) with a data sample same as below.

     

    Originator

    LBG
    LBG
    LBG

    BGT
    BGT

     

    In this particular column there are only two different values but many of my other columns that I need to acheive the same search functionality have many different values.

    Thank you for your help.

    Jamie

  • NotOnUrNelly76 Profile Picture
    23 on at

    @SebS 

    The following code is part working it will filter the values when individually selected -     LGB filters LGB values and BGT filters BGT values.  The gallery blanks when I select both LGB and BGT in the combo box but when I deselect all of the values show for both BGT and LGB.

     


    ClearCollect(colFlowFilters,
    Filter('UI.VW_FlowGas',

    FileReceivedint >= Value(lblFileReceievedFromNumber_1.Text) And FileReceivedint <= Value(lblFileReceievedToNumber_1.Text),
    LastUpdateint >= Value(lblLastUpdatedFromNumber.Text) && LastUpdateint <= Value(lblLastUpdatedToNumber.Text),

    IsBlank(cboOriginator.SelectedItems.Value)||IsEmpty(cboOriginator.SelectedItems)||Concat(cboOriginator.SelectedItems,Value,",") in Originator
    ))

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 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard