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 / Filtering gallery usin...
Power Apps
Unanswered

Filtering gallery using dropdownlist with condition

(1) ShareShare
ReportReport
Posted on by 4
Hi Guys,
 
I am currently working on filtering gallery with text field and dropdown list filter. The issue that I have currently one of dropdown list filter need additional condition once the value selected. 
 
The filter that I am having issue is the dropdown list called drpProjectStatus which contains 3 values, Blank, Approved, In Progress. Please refer highlighted code in red.
 
If drpProjectStatus selected is blank it return result correctly,
if drpProjectStatus selected equal to Approved also return result correctly.
 
The issue that I am having currently if the drpProjectStatus equal to In Progress. I only want to only return the record if CM1_Approval = drpProjectStatus.SelectedText.Value or TM1_Approval = drpProjectStatus.SelectedText.Value, How can I do this? Thank you
 
 
 
Search(
    Filter(
        'EvaluationReport',
        And(
            Or(
                
                Dropdown_Category.SelectedText.Value = "All",
                'Prodcategory'.Value = Dropdown_Category.SelectedText.Value
            )
        ),
        And(
            Or(
                IsBlank(drpProjectStatus.SelectedText.Value), 
 
                //This Value only trigger if the drpProjectStatus select Approved (which is working)
                'Mkt_Status'.Value = drpProjectStatus.SelectedText.Value,
                'CMT_Status'.Value = drpProjectStatus.SelectedText.Value,
                'TM_Status'.Value = drpProjectStatus.SelectedText.Value
                 
               //I need to add new condition if drpProjectStatus selected = In progress (this still not display value)
               CM1_Approval = drpProjectStatus.SelectedText.Value,
               TM1_Approval = drpProjectStatus.SelectedText.Value,
                
            )   
        ),
        And(
                
                'GM_Status'.Value <>"Rejected", 'CMT_Status'.Value <>"Rejected"
              
        ),      
        And(
            ControlStage <> "Approved"
        )
        
    ),
    
    txtNameFilter.Text,
    Title
)
Categories:
I have the same question (0)

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard