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 / Adding filter to dropdown
Power Apps
Answered

Adding filter to dropdown

(0) ShareShare
ReportReport
Posted on by 9

Hi,
After getting good help from a YouTube video I managed to make cascading dropdowns in 3 levels. This is for registration of products and in my SharePoint list "Produkter" I have Title (Kategori), 'Produsent' and 'Modell'.

I'm now adding a new column in my SharePoint list 'Produkter' - new field called 'Active' with true/false. The purpose is obviously to set old products to 'inactive'/false and filter them out to make the dropdown list shorter.

 

This is the Items code for the first dropdown as is;

Ungroup(
             Table(
                   {Value: Blank()};
                   {Value: Distinct(Produkter;Title)}
               );
               "Value"
)

 

How can I incorporate filter that is not showing items in SharePoint list 'Produkter' where Active=false?

I hope any of you clever minds out there can help. Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @Trema99 ,

     

    As you mentioned the Active column are with true/false values, I assume it is a Choices column. So you can modify the Items formula to:

    Ungroup(
     Table(
     {Value: Blank()};
     {Value: Distinct(Filter(Produkter;Active.Value = "true");Title)}
     );
     "Value"
    )

     

    But if the Active column is Yes/No type, formula should be:

    Ungroup(
     Table(
     {Value: Blank()};
     {Value: Distinct(Filter(Produkter;Active = true);Title)}
     );
     "Value"
    )

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard