Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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
)

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard