Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Lookup on combobox multiple selected value

Like (0) ShareShare
ReportReport
Posted on 9 Dec 2022 08:47:04 by 80

Hello Genius out there,

 

Here I need help in power apps.

Actually I am trying to have Lookup on mutiple values selected from Combo box and concating them with',' 

I have written code below but not working as expected.(It is doing lookup on first combo selection only and giving repeated value)

 

 

Concat(
ForAll (
BusinessRoleComboBox.SelectedItems,
LookUp(
'UAM_BUSINESS.RLS_CONFIG',
PRODUCT_NAME = ComboBox1_2.Selected.Result And ENVIRONMENT = EnvironmentComboBox.Selected.Result And DATA_RESTRICTION = BusinessRoleComboBox.Selected.Result,
AD_GROUP_ID
)
),
Value,
","
)

 

 

I have made 2 selection in combo box, the value should match with DATA_RESTRICTION  and give respective ADGROUPID to me. but it is giving 2 ADGROUP ID with same details.

 

Can someone else me with this.

  • MechEng2013 Profile Picture
    257 on 22 Aug 2023 at 21:32:29
    Re: Lookup on combobox multiple selected value

    @nejhade Where did you place this code to make it work?? I'm trying to do the same thing.

    Thanks!

  • Verified answer
    nejhade Profile Picture
    80 on 09 Dec 2022 at 10:52:14
    Re: Lookup on combobox multiple selected value

    I got answer for this, Thanks. Keeping it for future if someone needs it.

     

    Concat(
    ShowColumns(
    Distinct(
    Filter(
    'BUSINESS.RLS_CONFIG',
    PRODUCT_NAME = ComboBox1_2.Selected.Result && ENVIRONMENT = EnvironmentComboBox.Selected.Result && DATA_RESTRICTION in BusinessRoleComboBox.SelectedItems.Result),
    AD_GROUP_ID),"Result"),
    Result,
    ","
    )

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 78 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 42

#3
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

Overall leaderboard
Loading started