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 / dropdown should show o...
Power Apps
Unanswered

dropdown should show only true choices

(0) ShareShare
ReportReport
Posted on by 16

Hi all,

 

working on a power app which is generally a PDF library.

This time I am stuck on filtering items displayed in dropdown.

 

I am using a SP library which containing all the PDF files, with additional columns for further details e.g. autor, book title, year...

One column is type of choice, multiple = category. So a single PDF file (book) can be assigned to several categories.

But there are also choices which are not assigned to a book yet.

 

So I do not want that "empty" choices are visible in the dropdown menu.

 

To show all choices in dropdown I am using:

Choices(SPlibrary.ColumCategory)

Category1

Category2

Category3 (empty, not assigned to book yet)

Category4 (empty, not assigned to book yet)

Category5

 

So goal is that selection of the dropdown only shows:

Category1

Category2

Category5

 

Appreciate any advise.

 

Thanks and Regards, Alexander

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AlexanderGjr 

    Use a combobox control with Items property: Filter(Choices(SPlibrary.ColumCategory),Value="Category1"||Value="Category2"||Value="Category5")

  • AlexanderGjr Profile Picture
    16 on at

    @Drrickryp thanks, but just recognized that I missed to add a requirement.

    This statement have to be dynamic: Value="Category1"||Value="Category2"||Value="Category5"

     

    Let's assume I have two PDF Files uploaded:

    book1 = Category1 + Category2

    book2 = Category5

    dropdown shows categories 1,2,5

     

    next time when I upload another book:

    book3 = Category4 + Category2

    dropdown will show categories 1,2,4,5

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @AlexanderGjr 

    Ultimately, will you want to select a category and display the books and alternatively,  select a book and see its categories.   

  • AlexanderGjr Profile Picture
    16 on at

    @Drrickryp 

    kind of, app is already displaying books by filtering through dropdown, if user select a book, all categories shown in a text label too.

     

    as the library is slowly growing, users have to many selections which are useless at the moment, so I want to get rid of them as long no book carries this category

  • AlexanderGjr Profile Picture
    16 on at

    By using this:

     

    Distinct(SPlibrary, ColumCategory). Result

     

    I end up with a dropdown showing 5 empty options.

    What do I miss?

     

    guess I have to convert the type somehow

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard