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 / If condition on the it...
Power Apps
Unanswered

If condition on the items property of Combo Box

(0) ShareShare
ReportReport
Posted on by 480

This code is present on the Items property of the Combo Box in PowerApps form.

However, the expected data is not present in the Combo Box.

Please advise.

 

If(
User().Email="abc@xyz.com",
Filter(VW_ANC_WorkerPositionRate, REVPROJID=ComboBox1.Selected.PROJECTID),
Filter(VW_ANC_WorkerPositionRate, REVPROJID<>"HO_PLANT")
)

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    try this 

    Filter(VW_ANC_WorkerPositionRate, REVPROJID=ComboBox1.Selected.Value),
    Filter(VW_ANC_WorkerPositionRate, REVPROJID<>"HO_PLANT")
    )

     

    or this 

    Filter(VW_ANC_WorkerPositionRate, REVPROJID=ComboBox1.Selected.Result),
    Filter(VW_ANC_WorkerPositionRate, REVPROJID<>"HO_PLANT")
    )

  • cyberco01 Profile Picture
    480 on at

    what about the if condition.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    try this 

    If(
    User().Email="abc@xyz.com",

    Filter(VW_ANC_WorkerPositionRate, REVPROJID=ComboBox1.Selected.Value),
    Filter(VW_ANC_WorkerPositionRate, REVPROJID<>"HO_PLANT")
    )

     

    or this 

    If(
    User().Email="abc@xyz.com",

    Filter(VW_ANC_WorkerPositionRate, REVPROJID=ComboBox1.Selected.Result),
    Filter(VW_ANC_WorkerPositionRate, REVPROJID<>"HO_PLANT")
    )

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @cyberco01,

    Have you solved your problem?

    Do you want to populate a Combo Box based on current user?

     

    If the REVPROJID is a Text column and you set the ComboBox1 with this column directly, I think your formula is correct which works on my side.

     

    Could you please try this formula one more time and see if there is something error occuring?

  • cyberco01 Profile Picture
    480 on at

    @v-qiaqi-msft , records are coming in my combo-box using my formula but not all the records. That's the issue.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @cyberco01,

    Okay, that's delegation issue.

    Go to the Settings>General>Data row limit, change it into the 2000 if you have 500 there.

    vqiaqimsft_0-1642051928869.png

     Or if you have already set 2000 for the limit, I am afraid the "<>" cause the delegation issue. Currently, it is nondelagable if you have more than 2000 records and filter them using a "<>".

  • cyberco01 Profile Picture
    480 on at

    @v-qiaqi-msft , yes i have already set it to 2000. hence all the records are not coming. any other alternative for this.

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @cyberco01,

    Sorry, there is no alternative for this.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard