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 / Filter Table column wi...
Power Apps
Unanswered

Filter Table column with collection in SQL Server

(0) ShareShare
ReportReport
Posted on by

Hello,

I am having a challenge. IN is not working with SQL Server

 

  • dbSourceAddress- data Sorce
  • VarCollCity - list of city collection
  • City -is a column in the table(dbSourceAddress)

__________

  • Filter( dbSourceAddress, VarCollCity In City ) --- works with SharePoint List
  • Filter( dbSourceAddress, VarCollCity In City ) --- DO Not Work with MS SQL Data source

 

______

 

IN is not working with SQL Server

 

 

Any clue ...

Categories:
  • ajdhingr Profile Picture
    Microsoft Employee on at

    @VTandon - Could you please share the error or output from Monitor ?

  • VTandon Profile Picture
    on at

    /*           _______________________________    */

    /*           On click of button below  code execute */

    /*           _______________________________    */

     

    Set(

        userloc,

        Filter(

            '[dbo].[IA_TSA]',

            SM_USERID = lbUserId.Text

        )

    );

     

    Set(

        varLocList,

        Concat(userloc,LOC_I,", ")

    );

    Set(

       varSMCodeList,

       Concat(userloc,SM_C,", ")

    );

    Navigate(ScrCreateICTRequest)

     

    /*           _______________________________                                                                               */

    /*           Filter  data source  depending on the list               varSMCodeList, varLocList                          */

    /*           _______________________________                                                                               */

     

       Sort (GroupBy(

            Filter(

                '[dbo].[IA_VOR]',

                  varSMCodeList in SM_C &&           

                  varLocList in LOC_I

            ),

            "ORDER_I",

            "CUST_I",

            "ORD_CREATE_DATTIM_D",

            "SM_C",

            "Other"

        ),ORD_CREATE_DATTIM_D,Descending)

     

    Issue: When the list variable  varSMCodeList, varLocList return multiple values NO RECORD FOUND. Works well for single values.

    varSMCodeList = “A8”, “X0”        && varLocList = “111”, “22X”, “333”  X 

    varSMCodeList = “A8”    && varLocList = “111” OK

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard