cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhanney2323
Resolver I
Resolver I

ComboBox Pull in Columns and have a data table Filter on it

Hello All,

 

To give some background before I ask my question: We have a data table stored in SQL that has a bunch of materials under the material column and then there are about 80 or so other specification columns where depending on the material it may be a blank field or have a value according to what specifications that material has. 

 

Basically what I want to know is instead of displaying a data table with 80 specification columns and one material column, would it be possible to just display the material column and then instead filter on specification through a combobox? The combobox would have all 80 specification column names to choose from and then the data table would only pull back materials that have values in those columns chosen from the specification combobox.

 

I was thinking about it and I'm thinking of creating a collection on the onvisible property of the screen and collecting all the columns and then using that collection as the items property of the combobox, here is my formula below, but it doesn't seem to be working b/c the collection is empty. 

 

ClearCollect(_CollectSpecs,
First(
Distinct(ShowColumns('[dbo].[999_sf_item_creation_compound]',"FDA"),FDA).Result))

 

Additionally I was thinking on the datable items property I would have a filter that looked something like this formula below:

 

(Not(First(Filter(Spec_ComboBox.SelectedItems, Result = "FDA")).Result = "FDA") || FDA = "FDA") //And repeat this for every spec

 

Any Advice would be appreciated

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,434)