cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stefanlive
Level: Powered On

Filtering a sorted, distinct list on dropdown box - where data is from excel table

Hi I have a table which is 8 columns by 400 items in Excel...

 

I am producing 3 individual drop down menus for this which are reliant on the data from the before...

 

So Drop Down 1 - Links to options in Drop2 -

Drop Down 3 driven by Drop Down 2


This works well.... but the problem is the spreadsheet is divided into two parts for the purpose of this it is eith er Maths or English..

 

I know through a previous screen wether we want to show options for Math or English this is held in a Label on a previous screen called searchsubject and is in lowercase so for example "english".

 

The first dropdown has the Formula 

Sort(Distinct(objectives,maincat),Result)

The Column in the excel spreadsheet is called "subject" and contains either "English" or "Maths" notice capital E or M at start.

 

I thought that I would write a formula as

Filter(Sort(Distinct(objectives,maincat),Result), Subject = lower(searchsubject.text))

 

but it throws it out as if it does not know Column titled "Subject".

 

Any ideas on where I am going wrong.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Filtering a sorted, distinct list on dropdown box - where data is from excel table

Try it this way:

Sort(Distinct(Filter(objectives, Subject = lower(searchsubject.text)), maincat), Result)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Super User
Super User

Re: Filtering a sorted, distinct list on dropdown box - where data is from excel table

Try it this way:

Sort(Distinct(Filter(objectives, Subject = lower(searchsubject.text)), maincat), Result)



--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,605)