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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / dropdown for status vi...
Power Apps
Unanswered

dropdown for status view on gallery

(0) ShareShare
ReportReport
Posted on by 525

Hello @WarrenBelz 

 

Could you assist me With this formula 

As i am trying to get filter by status value on gallery . with previous code everything look nice and working now currently i add another dropdown for status filter 

here is i am try to use this 

Sort(
With(
{_IsAdmin: !IsBlank(LookUp('User ID Hahelp', 'Admin '.DisplayName = User().FullName))},
Filter(
'HH Power App',
'Created By'.DisplayName = User().FullName || _IsAdmin,
IsBlank(TextInput6.Text) || ID = Value(TextInput6.Text),
IsBlank(Dropdown1.Selected.Value) || Status = Dropdown1.Selected.Value
)
),
ID,
SortOrder.Descending
)

 

how do i add dropdown1 in this gallery want to view status of ticket 

Categories:
I have the same question (0)
  • zeg Profile Picture
    96 on at

    Hi @mbhatt  
    If Status is a choice column, please try Status.Value = Dropdown1.Selected.Value in the filter.
    Hope this helps.

  • mbhatt Profile Picture
    525 on at

    Hello ,

    @zeg 

    this formula not working 

  • zeg Profile Picture
    96 on at

    Hi

    @mbhatt 

    Is Dropdown1 items set to Choices([@'HH Power App'.Status])?

  • mbhatt Profile Picture
    525 on at

    Hello 

     

    @zeg 

     

    What are the codes to can see the status 

    here is drop down property 

     

    mbhatt_0-1685108242958.png

    as well your given code is applied on item property of gallery now what i have to use on drop down ? 

     

  • zeg Profile Picture
    96 on at

    @mbhatt 

    Please try  Status.Value = Dropdown1.SelectedText.Value

  • mbhatt Profile Picture
    525 on at

    Hello @zeg 

    I try with status.value =dropdown1.selected.value

    nothing happen code not given me error but seem like nothing happen when i click and valu from dropdown item from gallery not filter 

     

  • zeg Profile Picture
    96 on at

    @mbhatt 

     

    Please use Dropdown1.SelectedText.Value not

    Dropdown1.Selected.Value

  • mbhatt Profile Picture
    525 on at

    Hello 

    @zeg 

     

    I am Leveraging This code for all other dropdown and also maintaining roll base security roll for admin and user with search capability. 

    also, I have been confirm that this code is working fantastically and provide me result by filtering.

    here is code what i make for all things together ,

    Sort(
    With(
    {
    _IsAdmin: !IsBlank(
    LookUp(
    'User ID Hanhelp',
    'Admin '.DisplayName = User().FullName
    )
    )
    },
    Filter(
    'HH Power App',
    'Created By'.DisplayName = User().FullName || _IsAdmin,
    IsBlank(TextInput6.Text) || ID = Value(TextInput6.Text),
    _IsAdmin,IsBlank(Dropdown1.SelectedText.Value) || Dropdown1.SelectedText.Value = Status.Value,
    _IsAdmin, IsBlank(Dropdown2.SelectedText.Value) || Dropdown2.Selected.Value = Category.Value,
    _IsAdmin, IsBlank(Dropdown3.SelectedText.Value) || Dropdown3.SelectedText.Value = Priority.Value,
    _IsAdmin, IsBlank(Dropdown5.SelectedText.Value) || Dropdown5.SelectedText.Value= Property.Value
    )
    ),
    ID,
    SortOrder.Descending
    )

     

    No I need to confirm that this formula has facility can provide reset function when value is not selected by dropdown. also need to check other previous function is working or not . thanks 

  • mbhatt Profile Picture
    525 on at

    Hey 

     

    @zeg 

     

    I just confirm that this code is work for only admins.

    user are not able to see any of their own records.

    can you assist me with this code what i made mistake overhere ? 

  • zeg Profile Picture
    96 on at

    Hi @mbhatt 

    Please try without _isAdmin

    Sort(
    With(
    {
    _IsAdmin: !IsBlank(
    LookUp(
    'User ID Hanhelp',
    'Admin '.DisplayName = User().FullName
    )
    )
    },
    Filter(
    'HH Power App',
    'Created By'.DisplayName = User().FullName || _IsAdmin,
    IsBlank(TextInput6.Text) || ID = Value(TextInput6.Text),
    IsBlank(Dropdown1.SelectedText.Value) || Dropdown1.SelectedText.Value = Status.Value,
     IsBlank(Dropdown2.SelectedText.Value) || Dropdown2.Selected.Value = Category.Value,
     IsBlank(Dropdown3.SelectedText.Value) || Dropdown3.SelectedText.Value = Priority.Value,
     IsBlank(Dropdown5.SelectedText.Value) || Dropdown5.SelectedText.Value= Property.Value
    )
    ),
    ID,
    SortOrder.Descending
    )

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard